heterogenIV
builds on the lewbel
function form the ivlewbel
package. Changes have been made only to the printing and the summary of
the function, as well as the name.
heterogenIV(formula, data, clustervar = NULL, robust = TRUE)
formula
.heterogenREndo
, with the following components:
, with the following components:Fernihough, A. (2014). ivlewbel package: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models.
lewbel
, , higherMomentsIV
, latentIV
, copulaCorrection
, ivreg
.
data(dataHigherMoments)
dataHetIV <- as.data.frame(dataHigherMoments)
hIV <- heterogenIV(y ~ P| X1 + X2 | X1 + X2, data = dataHetIV)
summary(hIV)
Run the code above in your browser using DataLab