opsr_2step | R Documentation |
This is a utility function, used in opsr
and should not be used directly.
Tow-step estimation procedure to generate reasonable starting values.
opsr_2step(W, Xs, Z, Ys)
W |
matrix with explanatory variables for selection process. |
Xs |
list of matrices with expalanatory varialbes for outcome process for each regime. |
Z |
vector with ordinal outcomes (in integer increasing fashion). |
Ys |
list of vectors with continuous outcomes for each regime. |
These estimates can be retrieved by specifying .get2step = TRUE
in opsr
.
Named vector with starting values passed to opsr.fit
.
Since the Heckman two-step estimator includes an estimate in the second step regression, the resulting OLS standard errors and heteroskedasticity-robust standard errors are incorrect \insertCiteGreene:2002OPSR.
Greene:2002OPSR
opsr.fit
, opsr_prepare_coefs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.