rflexmix | R Documentation |
Given a finite mixture model generate random numbers from it.
rflexmix(object, newdata, ...)
object |
A fitted finite mixture model of class |
newdata |
Optionally, a data frame in which to look for variables with which to predict or an integer specifying the number of random draws for model-based clustering. If omitted, the data to which the model was fitted is used. |
... |
Further arguments to be passed to or from methods. |
rflexmix
provides the creation of the model matrix for new data
and the sampling of the cluster memberships. The sampling of the
component distributions given the classification is done by calling
rFLXM
. This step has to be provided for the different model
classes.
A list with components
y |
Random sample |
group |
Grouping factor |
class |
Class membership |
Bettina Gruen
example(flexmix)
sample <- rflexmix(ex1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.