Takuya Hasebe
The Stata Journal: Promoting communications on statistics and Stata, 20(3) 627-646, Sep, 2020 Peer-reviewed
In this article, I describe the escount command, which implements the estimation of an endogenous switching model with count-data outcomes, where a potential outcome differs across two alternate treatment statuses. escount allows for either a Poisson or a negative binomial regression model with lognormal latent heterogeneity. After estimating the parameters of the switching regression model, one can estimate various treatment effects with the command teescount. I also describe the command lncount, which fits the Poisson or negative binomial regression model with lognormal latent heterogeneity.