Learn R Programming

MixtureMissing (version 3.0.4)

print.MixtureMissing: Print for MixtureMissing

Description

Print MixtureMissing object.

Usage

# S3 method for MixtureMissing
print(x, ...)

Value

No return value, called to print the fitted model's description.

Arguments

x

A MixtureMissing object or an output of select_mixture. In the latter, only the best model will be considered.

...

Further arguments passed to or from other methods.

Details

The description includes information on the complete or incomplete data, number of clusters, and component distribution.

Examples

Run this code

#++++ With no missing values ++++#

X <- iris[, 1:4]
mod <- MGHM(X, G = 2, model = 'GH', max_iter = 10)
print(mod)

#++++ With missing values ++++#

set.seed(123)
X <- hide_values(iris[, 1:4], n_cases = 20)
mod <- MGHM(X, G = 2, model = 'GH', max_iter = 10)
print(mod)

Run the code above in your browser using DataLab