Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logLik.MclustDA

Log-Likelihood of a MclustDA object


Description

Returns the log-likelihood for a MclustDA object.

Usage

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

Arguments

object

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

data

the data for which the log-likelihood must be computed. If missing, the observed data from the 'MclustDA' object is used.

...

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(s)

Luca Scrucca

See Also

Examples

irisMclustDA <- MclustDA(iris[,1:4], iris$Species)
summary(irisMclustDA)
logLik(irisMclustDA)

mclust

Gaussian Mixture Modelling for Model-Based Clustering, Classification, and Density Estimation

v5.4.10
GPL (>= 2)
Authors
Chris Fraley [aut], Adrian E. Raftery [aut] (<https://orcid.org/0000-0002-6589-301X>), Luca Scrucca [aut, cre] (<https://orcid.org/0000-0003-3826-0484>), Thomas Brendan Murphy [ctb] (<https://orcid.org/0000-0002-5668-7046>), Michael Fop [ctb] (<https://orcid.org/0000-0003-3936-2757>)
Initial release
2022-05-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.