Learn R Programming

REndo (version 1.3)

copulaMethod2: Fitting Linear Models with Endogeneous Regressors using Gaussian Copula - Method 2

Description

It fits linear models with several endogeneous regressors using Gaussian Copula proposed by Park and Gupta (2012).

Usage

copulaMethod2(formula, endoVar, intercept = NULL, data)

Arguments

formula

the model formula, e.g. y ~ X1 + X2 + P.

endoVar

a string with the name of the endogenous variable/s, in quotation marks.

intercept

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

data

a data frame or matrix containing the variables of the model.

Value

Returns an object of class "lm".