Learn R Programming

plm (version 0.1-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)

Arguments

x
an object of class "plms" or "plm"

Value

  • A numeric vector containing the fixed effects.

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.

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)

Run the code above in your browser using DataLab