extract.mixturepars | R Documentation |
Extracts parameters of certain mixture components from the output of
summary.mclustBIC
and updates proportions so that
they sum up to 1.
extract.mixturepars(mclustsum,compnumbers,noise=FALSE)
mclustsum |
output object of |
compnumbers |
vector of integers. Numbers of mixture components. |
noise |
logical. Should be |
Object as component parameters
of
summary.mclustBIC
-output, but for specified
components only. (Orientation information from all components is kept.)
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en/
set.seed(98765)
require(mclust)
iriss <- iris[sample(150,20),-5]
irisBIC <- mclustBIC(iriss,G=5,modelNames="VEV")
siris <- summary(irisBIC,iriss)
emp <- extract.mixturepars(siris,2)
emp$pro
round(emp$mean,digits=1)
emp$variance$modelName
round(emp$variance$scale,digits=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.