Learn R Programming

REndo (version 1.2)

copulaCont1: Fitting Linear Models with One Enedogenous Regressor using Gaussian Copula

Description

Estimates a linear model with one endogenous variable using Gaussian copula. The optimization is done via maximum likelihood, using the BFLG algorithm.

Usage

copulaCont1(y, X, P, param = NULL, intercept = NULL, data = 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 should contain the endogeneous variable.
P
a vector containing the continuous, non-normally distributed endogeneous variable.
param
Initial values for the parameters to be optimized over.
intercept
It should be specified whether the model should be estimated with or without 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
optional data frame or matrix containing the variables of the model.

Value

Returns a list with the best set of parameters found.