Learn R Programming

plm (version 0.2-2)

FE: 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.

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.

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.

See Also

plm

Examples

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

Run the code above in your browser using DataLab