powered by
fitmix.simulate(n, p, mu, sigma)
xx <- fitmix.simulate(100, c(0.49, 0.42, 0.09), c(0, 1, 2), c(.3, .3, .3)) plot(density(xx))
Run the code above in your browser using DataLab