effects.splm {splm} | R 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 |
... |
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)