Learn R Programming

mclust (version 6.1)

logLik.MclustDA: Log-Likelihood of a MclustDA object

Description

Returns the log-likelihood for a MclustDA object.

Usage

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

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 '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.

Author

Luca Scrucca

See Also

MclustDA.

Examples

Run this code
# \donttest{
irisMclustDA <- MclustDA(iris[,1:4], iris$Species)
summary(irisMclustDA)
logLik(irisMclustDA)
# }

Run the code above in your browser using DataLab