Learn R Programming

splm (version 1.6-5)

effects.splm: 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 splm
effects(object,...)

Value

An object of class effects.splm

res

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

Arguments

object

an object of class 'splm'

...

additional arguments to be passed over

Author

Gianfranco Piras

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.

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

Run this code
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)

Run the code above in your browser using DataLab