sim_n_mixture | R Documentation |
produces samples from a mixture of n normal distributions.
sim_n_mixture(n, par, skeleton = NULL)
n |
The number of samples to generate |
par |
A list of parameter values. The first entry contains the |
skeleton |
An object which helps to relist the vector of parameters into the expected format.means of each component, the second the SDs, and the last contains the weights. An exponential link is applied to the SDs, and the probs_link function is used on the weights. probs_link is simply a variant of the qlogis link |
A vector of n generated normal-mixture samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.