Learn R Programming

FENmlm (version 2.4.4)

coef.femlm: Extracts the coefficients from a femlm fit

Description

This function extracts the coefficients obtained from a model estimated with femlm.

Usage

# S3 method for femlm
coef(object, ...)

# S3 method for femlm coefficients(object, ...)

Value

This function returns a named numeric vector.

Arguments

object

An object of class femlm. Typically the result of a femlm estimation.

...

Not currently used.

Author

Laurent Berge

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.

See Also

femlm, summary.femlm, confint.femlm, vcov.femlm, res2table, res2tex, getFE.

Examples

Run this code

# 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)


Run the code above in your browser using DataLab