Learn R Programming

endoSwitch

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.

Package installation

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")

Note

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)

Copy Link

Version

Install

install.packages('endoSwitch')

Monthly Downloads

19

Version

1.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Bowen Chen

Last Published

February 21st, 2020

Functions in endoSwitch (1.0.0)

endoSwitch

Endogenous Switching Regression Models
treatmentEffect

Endogenous switching regression
calcPar

Endogenous switching regression
endoSwitch2Stage

Endogenous switching regression
ImpactData

A dataset on adoption of conservation agriculture in Zambia
summary.endoSwitch

Summarize the endogenous switching regression results.