effects.splm: method for extracting fixed effects

View source: R/fixed_effects.R

effects.splmR Documentation

method for extracting fixed effects

Description

Methods used for extracting fixed effects from objects of class splm where type is one of "fixed effects lag" or "fixed effects error"

Usage

## S3 method for class 'splm'
effects(object,...)

Arguments

object

an object of class 'splm'

...

additional arguments to be passed over

Details

If the argument object is not of class splm the function will terminate with an error.

If the argument object is of class splm but type is not one of "fixed effects lag" or "fixed effects error", the function will terminate with an error.

Value

An object of class effects.splm

res

a list whose elements are various type of fixed effects and the intercept (when present)

Author(s)

Gianfranco Piras

References

Elhorst, J.P. (2003) Specification and estimation of spatial panel data models, International Regional Science Review, 26, pages 244–268.

Elhorst, J.P. (2009) Spatial panel data models, In Fischer, M.M. and Getis, A. (eds), Handbook of Applied Spatial Analysis Springer, Berlin.

See Also

spml summary.effects.splm

Examples

data(Produc, package = "plm")
data(usaww)
fm <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
err <- spml(fm, data = Produc, listw = spdep::mat2listw(usaww), model="within")
summary(err)
eff <- effects(err) 
print(eff)

splm documentation built on July 26, 2023, 5:44 p.m.

Related to effects.splm in splm...