Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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, ...)

## S3 method for class 'piest'
print(x, ...)

## S3 method for class 'piest'
summary(object, ...)

## S3 method for class 'summary.piest'
print(x, ...)

Arguments

formula

a symbolic description for the model to be estimated,

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.

object, x

an object of class "plm",

Details

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

Value

An object of class "piest".

Author(s)

Yves Croissant

References

Chamberlain G (1982). “Multivariate regression models for panel data.” Journal of Econometrics, 18, 5–46.

See Also

Examples

data("RiceFarms", package = "plm")
pirice <- piest(log(goutput) ~ log(seed) + log(totlabor) + log(size), RiceFarms, index = "id")
summary(pirice)

plm

Linear Models for Panel Data

v2.4-1
GPL (>= 2)
Authors
Yves Croissant [aut, cre], Giovanni Millo [aut], Kevin Tappe [aut], Ott Toomet [ctb], Christian Kleiber [ctb], Achim Zeileis [ctb], Arne Henningsen [ctb], Liviu Andronic [ctb], Nina Schoenfelder [ctb]
Initial release
2021-03-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.