Learn R Programming

FENmlm (version 2.4.4)

logLik.femlm: Extracts the log-likelihood

Description

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

Usage

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

Value

It returns a numeric scalar.

Arguments

object

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

...

Not currently used.

Author

Laurent Berge

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.

See Also

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

Examples

Run this code

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

nobs(res)
logLik(res)


Run the code above in your browser using DataLab