Learn R Programming

fixest (version 0.3.1)

coef.fixest: Extracts the coefficients from a fixest estimation

Description

This function extracts the coefficients obtained from a model estimated with femlm, feols or feglm.

Usage

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

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

Arguments

object

A fixest object. Obtained using the functions femlm, feols or feglm.

...

Not currently used.

Value

This function returns a named numeric vector.

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 the models from the estimations help pages: femlm, feols or feglm.

Note that if the model has been estimated with clusters, to obtain the cluster coefficients, you need to use the function fixef.fixest.

See Also

See also the main estimation functions femlm, feols or feglm. summary.fixest, confint.fixest, vcov.fixest, esttable, esttex, fixef.fixest.

Examples

Run this code
# NOT RUN {
# 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:
fixef(res)


# }

Run the code above in your browser using DataLab