| resid.femlm | R Documentation |
This function extracts residuals from a fitted model estimated with femlm.
## S3 method for class 'femlm'
resid(object, ...)
## S3 method for class 'femlm'
residuals(object, ...)
object |
An object of class |
... |
Not currently used. |
The residuals returned are the difference between the dependent variable and the expected predictor.
It returns a numeric vector of the length the number of observations used for the estimation.
Laurent Berge
femlm, fitted.femlm, predict.femlm, summary.femlm, vcov.femlm, getFE.
# simple estimation on iris data, clustering by "Species"
res_poisson = femlm(Sepal.Length ~ Sepal.Width + Petal.Length +
Petal.Width | Species, iris)
# we plot the residuals
plot(resid(res_poisson))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.