Learn R Programming

plm (version 1.6-5)

piest: Chamberlain estimator and test for fixed effects

Description

General estimator useful for testing the within specification

Usage

piest(formula, data, subset, na.action, index = NULL, robust = TRUE, ...) "summary"(object, ...) "print"(x, ...)

Arguments

formula
a symbolic description for the model to be estimated,
object,x
an object of class "plm",
data
a data.frame,
subset
see lm,
na.action
see lm,
index
the indexes,
robust
if FALSE, the error as assumed to be spherical, otherwise, a robust estimation of the covariance matrix is computed,
...
further arguments.

Value

An object of class "piest".

Details

The Chamberlain method consists on using the covariates of all the periods as regressors. It allows to test the within specification.

References

Chamberlain, G. (1982) Multivariate regression for panel data, Journal of Econometrics, 18(1), pp. 5--46.

Examples

Run this code
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