mclust (version 5.4.3)

summary.Mclust: Summarizing Gaussian Finite Mixture Model Fits

Description

Summary method for class "Mclust".

Usage

# S3 method for Mclust
summary(object, parameters = FALSE, classification = FALSE, …)
# S3 method for summary.Mclust
print(x, digits = getOption("digits"), …)

Arguments

object

An object of class 'Mclust' resulting of a call to Mclust or densityMclust.

x

An object of class 'summary.Mclust', usually, a result of a call to summary.Mclust.

parameters

Logical; if TRUE, the parameters of mixture components are printed.

classification

Logical; if TRUE, the MAP classification/clustering of observations is printed.

digits

The number of significant digits to use when printing.

Further arguments passed to or from other methods.

See Also

Mclust, densityMclust.

Examples

Run this code
# NOT RUN {
mod1 = Mclust(iris[,1:4])
summary(mod1)
summary(mod1, parameters = TRUE, classification = TRUE)

mod2 = Mclust(iris[,1:4], G = 1)
summary(mod2, parameters = TRUE, classification = TRUE)

mod3 = Mclust(iris[,1:4], prior = priorControl())
summary(mod3)

mod4 = Mclust(iris[,1:4], prior = priorControl(functionName="defaultPrior", shrinkage=0.1))
summary(mod4, parameters = TRUE, classification = TRUE)
# }

Run the code above in your browser using DataLab