rnormmix {bacon} | R Documentation |
sample from a normal mixture
rnormmix(n, theta, shuffle = TRUE)
n |
size |
theta |
parameters |
shuffle |
shuffle return vectors or keep nulls and alternative ordered (null, alts) |
details follow
n samples from a normal mixture with parameters theta
mvaniterson
n <- 2000 theta <- c(0.8, 0, 1, 0, 4, 1) x <- rnormmix(n, theta)