logLik.Mclust: Log-Likelihood of a 'Mclust' object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mclust.R

Description

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

Usage

1
2
  ## S3 method for class '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(s)

Luca Scrucca

See Also

Mclust.

Examples

1
2
3
4
5
6
## Not run: 
irisMclust <- Mclust(iris[,1:4])
summary(irisMclust)
logLik(irisMclust)

## End(Not run)

mclust documentation built on Nov. 22, 2017, 5:05 p.m.