Learn R Programming

mclust (version 6.0.1)

logLik.Mclust: Log-Likelihood of a Mclust object

Description

Returns the log-likelihood for a 'Mclust' object.

Usage

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

Value

Returns an object of class 'logLik' with an element providing the maximized log-likelihood, and further arguments giving the number of (estimated) parameters in the model ("df") and the sample size ("nobs").

Arguments

object

an object of class 'Mclust' resulting from a call to Mclust.

...

further arguments passed to or from other methods.

Author

Luca Scrucca

See Also

Mclust.

Examples

Run this code
# \donttest{
irisMclust <- Mclust(iris[,1:4])
summary(irisMclust)
logLik(irisMclust)
# }

Run the code above in your browser using DataLab