sortByCriterion | R Documentation |
Mixmod
] object by a given criterionAfter calling the mixmodCluster() or mixmodLearn() method, results will be sorted into ascending order according to the first given criterion (descending order for CV criterion). This method is able to reorder the list of results according to a given criterion.
sortByCriterion(object, criterion)
## S4 method for signature 'Mixmod,character'
sortByCriterion(object, criterion)
object |
a [ |
criterion |
a string containing the criterion name |
a modified [Mixmod
] object
x <- mixmodCluster(iris[1:4], 2:10, criterion = c("BIC", "ICL"))
icl <- sortByCriterion(x, "ICL")
icl["results"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.