coef.femlm {FENmlm} | R Documentation |
Extracts the coefficients from a femlm fit
Description
This function extracts the coefficients obtained from a model estimated with femlm
.
Usage
## S3 method for class 'femlm'
coef(object, ...)
## S3 method for class 'femlm'
coefficients(object, ...)
Arguments
object |
An object of class |
... |
Not currently used. |
Details
The coefficients are the ones that have been found to maximize the log-likelihood of the specified model. More information can be found on femlm
help page.
Note that if the model has been estimated with clusters, to obtain the cluster coefficients, you need to use the function getFE
.
Value
This function returns a named numeric vector.
Author(s)
Laurent Berge
See Also
femlm
, summary.femlm
, confint.femlm
, vcov.femlm
, res2table
, res2tex
, getFE
.
Examples
# simple estimation on iris data, clustering by "Species"
res = femlm(Sepal.Length ~ Sepal.Width + Petal.Length +
Petal.Width | Species, iris)
# the coefficients of the variables:
coef(res)
# the cluster coefficients:
getFE(res)
[Package FENmlm version 2.4.4 Index]