Maximum likelihood estimation of endogenous switching and sample selection models for binary, ordinal, and count variables

Studying behavior 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 article describes a “wrapper” program, ssm, that calls gllamm (Rabe-Hesketh, Skrondal, and Pickles, GLLAMM Manual [University of California–Berkeley, Division of Biostatistics, Working Paper Series, Paper No. 160]) to fit such models. The wrapper accepts data in a simple structure, has a straightforward syntax, and reports output that is easily interpretable. One important feature of ssm is that the log likelihood can be evaluated using adaptive quadrature (Rabe-Hesketh, Skrondal, and Pickles, Stata Journal 2: 1–21; Journal of Econometrics 128: 301–323).

Issue Date:
Publication Type:
Journal Article
DOI and Other Identifiers:
st0107 (Other)
PURL Identifier:
Published in:
Stata Journal, Volume 06, Number 3
Page range:
Total Pages:

Record appears in:

 Record created 2017-04-01, last modified 2017-04-27

Download fulltext

Rate this document:

Rate this document:
(Not yet reviewed)