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

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

Arguments

object

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

...

further arguments passed to or from other methods.

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").

Author

Luca Scrucca

See also

Examples

if (FALSE) { irisMclust <- Mclust(iris[,1:4]) summary(irisMclust) logLik(irisMclust) }