sim_cmgnd | R Documentation |
Simulate univariate constrained mixture of generalized normal distribution models. Remeber to set the set.seed() before the function sim_cmgnd().
sim_cmgnd(
n = 1000,
pi = rep(0.5, 2),
mu = c(1, 5),
sigma = c(1, 1),
nu = c(2, 2)
)
n |
A numeric value indicating the total number of observations to simulate. |
pi |
A numeric vector of the mixture weights |
mu |
A numeric vector of the location parameter |
sigma |
A numeric vector of the scale parameter |
nu |
A numeric vector of the shape parameter |
sim_data |
The simulated data. |
sim_clus |
The cluster indication of simulated data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.