Learn R Programming

REndo (version 1.2)

copulaDiscrete: Fitting Linear Models with Endogeneous Discrete Regressors using Internal Instrumental Variables

Description

Fits linear models with discrete, endogeneous regressors using the approach described in Park and Gupta (2012). Due to the variablility in pStar, a simulation was needed in order to obtain the coefficient estimates. Then, in order to get the Z-scores and p-values the sum of the Z method was used as described in Zaykin, D V.(2011). "Optimally weighted Z-test is a powerful method for combining probabilities in meta-analysis". Journal of Evolutionary Biology, 24:1836-1841.

Usage

copulaDiscrete(y, X, P, intercept = NULL, data = NULL)

Arguments

y
vector containing the dependent variable.
X
matrix containing the regressors, with the endogenous variables occupying the last columns.
P
matrix containing the discrete endogeneous regressors.
intercept
the intercept of the model. It should be specified whether the model should be estimated with or without intercept. If no intercept is desired, intercept should be given the value "FALSE", otherwise the value "TRUE".
data
optional matrix or data frame containing the dataset used.

Value

Returns an object of class "lm".

References

Park, S. and Gupta, S., (2012), 'Handling Endogeneous Regressors by Joint Estimation Using Copulas', Marketing Science, 31(4), 567-86.