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)
)
sim_data
The simulated data.
sim_clus
The cluster indication of simulated data.
A numeric value indicating the total number of observations to simulate.
A numeric vector of the mixture weights \(\pi_k\).
A numeric vector of the location parameter \(\mu_k\).
A numeric vector of the scale parameter \(\sigma_k\).
A numeric vector of the shape parameter \(\nu_k\).