The R package estimates the endogenous switching regression model using full maximum likelihood estimation, and calculates treatment effects of a binary treatment.
The function can replicate the regression results of the movestay command in STATA, though minor difference could occur due to differences in the optimization methods.
To install the package, run the following codes in R:
install.packages("devtools") # Run this if the devtools package is not installed. devtools::install_github("cbw1243/endoSwitch")
The package is still under development. I am making regular changes to the package for performance improvement. Please use the most recent version of the package. Install again before using it.
If there is anything wrong, shoot me an email.
Contact: Bowen Chen, PhD (bwchen@illinois.edu)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.