It fits linear models with several endogeneous regressors using Gaussian Copula proposed by Park and Gupta (2012).
copulaMethod2(formula, endoVar, intercept = NULL, data)
the model formula, e.g. y ~ X1 + X2 + P
.
a string with the name of the endogenous variable/s, in quotation marks.
an optional parameter. The model is estimated by default with
intercept. If no intercept is desired or the regressors matrix X
contains already
a column of ones, intercept should be given the value "FALSE", otherwise the value "TRUE".
a data frame or matrix containing the variables of the model.
Returns an object of class "lm".