Learn R Programming

REndo (version 1.2)

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(y, X, P, intercept = NULL)

Arguments

y
a vector or matrix containing the dependent variable.
X
a data frame or matrix containing the regressors of the model, both exogeneous and endogeneous. The last column/s should contain the endogeneous variable/s.
P
a matrix containing the endogeneous variables. They should be continuous and non-normally distributed.
intercept
Optional parameter. The model is estimated by default with intercept. If no intercept is desired or the matrix X contains already a column of ones, intercept should be given the value "no".

Value

Returns an object of class "lm".