LM.bpm
can be used to test the hypothesis of absence of endogeneity
or correlated model equations/errors or non-random sample selection.LM.bpm(formula.eq1, formula.eq2, data, selection=FALSE, FI=FALSE)
data
, the
variables are taken from environment(formula)
, typically the environment from which LM.bpm
is TRUE
, then the test is performed for the sample selection model case.TRUE
, then the Fisher (rather than the observed) information matrix is used.selection=FALSE
and FI=TRUE
, a convenient simplification based on the result that
the Fisher information matrix becomes block diagonal is employed (Marra et al., in press). Also, the current version of the Fisher information is
not adequate for the sample selection and endogeneity cases.SemiParBIVProbit
## see examples for SemiParBIVProbit
Run the code above in your browser using DataLab