logLik.femlm: Extracts the log-likelihood

logLik.femlmR Documentation

Extracts the log-likelihood

Description

This function extracts the log-likelihood from a femlm estimation.

Usage

## S3 method for class 'femlm'
logLik(object, ...)

Arguments

object

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

...

Not currently used.

Details

This function extracts the log-likelihood based on the model fit. You can have more information on the likelihoods in the details of the function femlm.

Value

It returns a numeric scalar.

Author(s)

Laurent Berge

See Also

femlm, AIC.femlm, BIC.femlm, nobs.femlm.

Examples


# simple estimation on iris data, clustering by "Species"
res = femlm(Sepal.Length ~ Sepal.Width + Petal.Length +
            Petal.Width | Species, iris)

nobs(res)
logLik(res)



FENmlm documentation built on Aug. 22, 2023, 5:11 p.m.