powered by
Angrist and Newey's version of the Chamberlain test
aneweytest(formula, data, subset, na.action, index = NULL, ...)
a symbolic description for the model to be estimated,
a data.frame,
data.frame
see lm(),
lm()
the indexes,
further arguments.
An object of class "htest".
"htest"
Angrist and Newey's test is based on the results of the artifactual regression of the within residuals on the covariates for all the periods.
ANGR:NEWE:91plm
piest() for Chamberlain's test
piest()
# NOT RUN { data("RiceFarms", package = "plm") aneweytest(log(goutput) ~ log(seed) + log(totlabor) + log(size), RiceFarms, index = "id") # }
Run the code above in your browser using DataLab