FE {plm}R Documentation

Extract the fixed effects

Description

This function extracts the fixed effects from a plm or a plms object.

Usage

FE(x)
## S3 method for class 'plm':
FE(x)
## S3 method for class 'plms':
FE(x)
## S3 method for class 'FE':
print(x,digits=5,...)
## S3 method for class 'FE':
summary(object,...)

Arguments

x,object an object of class "plms" or "plm", an object of class FE for the print and the summary method,
digits digits,
... further arguments.

Details

The element FE of a plm object corresponding to a within model is a numerical vector which length is the total number of observations. This function returns a vector which length is the number of individuals. The summary method prints the effects in deviation from the overall intercept, the standard error and the t–values.

Value

An object of class FE. It is a numeric vector containing the fixed effects with two attributes : se which contains the standard errors and intercept which is the overall intercept.

Author(s)

Yves Croissant

See Also

plm

Examples

library(Ecdat)
data(Grunfeld)
pdata.frame(Grunfeld,"firm","year")
gi <- plm(inv ~ value + capital, data=Grunfeld)
FE(gi)
FE(gi$within)
summary(FE(gi))

[Package plm version 0.2-1 Index]