powered by
General estimator useful for testing the within specification
piest(formula, data, subset, na.action, index = NULL, robust = TRUE, ...)# S3 method for piest print(x, ...)# S3 method for piest summary(object, ...)# S3 method for summary.piest print(x, ...)
# S3 method for piest print(x, ...)
# S3 method for piest summary(object, ...)
# S3 method for summary.piest print(x, ...)
a symbolic description for the model to be estimated,
a data.frame,
data.frame
see lm(),
lm()
the indexes,
if FALSE, the error as assumed to be spherical, otherwise, a robust estimation of the covariance matrix is computed,
FALSE
further arguments.
an object of class "plm",
"plm"
An object of class "piest".
"piest"
The Chamberlain method consists on using the covariates of all the periods as regressors. It allows to test the within specification.
CHAM:82plm
aneweytest()
# NOT RUN { data("RiceFarms", package = "plm") pirice <- piest(log(goutput) ~ log(seed) + log(totlabor) + log(size), RiceFarms, index = "id") summary(pirice) # }
Run the code above in your browser using DataLab