IDEAS home Printed from
MyIDEAS: Login to save this paper or follow this series

Maximum Likelihood Estimation of Endogenous Switching And Sample Selection Models for Binary, Count, And Ordinal Variables

  • Alfonso Miranda


    (Department of Economics, Keele,)

  • Sophia Rabe-Hesketh

    (Graduate Schoolof Education,)

Studying behaviour in economics, sociology, and statistics often involves fitting models in which the response variable depends on a dummy variable (also known as a regime switch variable) or in which the response variable is observed only if a particular selection condition is met. In either case, standard regression techniques deliver inconsistent estimators if unobserved factors that affect the response are correlated with unobserved factors that affect the switching or selection variable. Consistent estimators can be obtained by maximum likelihood estimation of a joint model of the outcome and switching or selection variable. This paper describes a ‘wrapper’ program, ssm, that calls gllamm (Rabe-Hesketh et al. 2004a) to fit such models. The wrapper accepts data in a simple structure, has a straightforward syntax, and reports output in a manner that is easily interpretable. One important feature of ssm is that the log-likelihood can be evaluated using adaptive quadrature (Rabe- Hesketh and Skrondal 2002; Rabe-Hesketh et al. 2005)

If you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL:
Download Restriction: no

Paper provided by Centre for Economic Research, Keele University in its series Keele Economics Research Papers with number KERP 2005/14.

in new window

Length: 34 pages
Date of creation: Dec 2005
Date of revision:
Publication status: Published in the STATA Journal, 6(3), 2006, pages 285-308.
Handle: RePEc:kee:kerpuk:2005/14
Contact details of provider: Postal: Department of Economics, University of Keele, Keele, Staffordshire, ST5 5BG - United Kingdom
Phone: +44 (0)1782 584581
Fax: +44 (0)1782 717577
Web page:

More information through EDIRC

Order Information: Postal: Centre for Economic Research, Research Institute for Public Policy and Management, Keele University, Staffordshire ST5 5BG - United Kingdom
Web: Email:

No references listed on IDEAS
You can help add them by filling out this form.

This item is not listed on Wikipedia, on a reading list or among the top items on IDEAS.

When requesting a correction, please mention this item's handle: RePEc:kee:kerpuk:2005/14. See general information about how to correct material in RePEc.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Martin E. Diedrich)

The email address of this maintainer does not seem to be valid anymore. Please ask Martin E. Diedrich to update the entry or send us the correct address

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

If references are entirely missing, you can add them using this form.

If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

This information is provided to you by IDEAS at the Research Division of the Federal Reserve Bank of St. Louis using RePEc data.