step2 | R Documentation |
Estimate model parameters via two-step method
step2(YS, XS, YO, XO)
YS |
Selection vector. |
XS |
Selection Matrix. |
YO |
Interest vector. |
XO |
Matrix of the equation of interest. |
Returns a numerical vector with the parameter estimates of the Classical Heckman model via a two-step method. For more information see \insertCiteheckman1979sample;textualssmodels
data(MEPS2001) attach(MEPS2001) YS <- dambexp XS <- cbind(age, female, educ, blhisp, totchr, ins) YO <- lnambx XO <- cbind(age, female, educ, blhisp, totchr, ins, income) step2(YS, XS, YO, XO)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.