View source: R/fixed_effects.R
| effects.splm | R Documentation |
Methods used for extracting fixed effects from objects of class splm where type is one of
"fixed effects lag" or "fixed effects error"
## S3 method for class 'splm'
effects(object,...)
object |
an object of class |
... |
additional arguments to be passed over |
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.
An object of class effects.splm
res |
a list whose elements are various type of fixed effects and the intercept (when present) |
Gianfranco Piras
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.
spml summary.effects.splm
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.