Learn R Programming

mclust (version 4.1)

logLik.Mclust: Log-Likelihood of a Mclust object

Description

Returns the log-likelihood for a Mclust object.

Usage

## S3 method for class 'Mclust':
logLik(object, data, \dots)

Arguments

object
an object of class "Mclust" resulting from a call to Mclust.
data
the data for which the log-likelihood must be computed. If missing, the observed data from the "Mclust" object is used.
...
further arguments passed to or from other methods.

Value

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

References

C. Fraley and A. E. Raftery (2002). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611:631.

C. Fraley, A. E. Raftery, T. B. Murphy and L. Scrucca (2012). mclust Version 4 for R: Normal Mixture Modeling for Model-Based Clustering, Classification, and Density Estimation. Technical Report No. 597, Department of Statistics, University of Washington.

See Also

Mclust.

Examples

Run this code
irisMclust <- Mclust(iris[,1:4])
summary(irisMclust)
logLik(irisMclust)

Run the code above in your browser using DataLab