Format mixture models obtained for example by mclust::Mclust.

# S3 method for Mclust
model_parameters(model, verbose = TRUE, ...)

Arguments

model

Mixture model.

verbose

Toggle warnings and messages.

...

Arguments passed to or from other methods.

Examples

library(parameters)
if (require("mclust", quietly = TRUE)) {
  model <- mclust::Mclust(iris[1:4], verbose = FALSE)
  model_parameters(model)
}
#> Package 'mclust' version 5.4.7
#> Type 'citation("mclust")' for citing this R package in publications.
#> 
#> Attaching package: ‘mclust’
#> The following object is masked from ‘package:psych’:
#> 
#>     sim
#> Gaussian finite mixture model fitted by EM algorithm
#> 
#> Cluster | n_Obs | Sepal.Length | Sepal.Width | Petal.Length | Petal.Width
#> -------------------------------------------------------------------------
#> 1       |    50 |         5.01 |        3.43 |         1.46 |        0.25
#> 2       |   100 |         6.26 |        2.87 |         4.91 |        1.68