Generates random numbers from a mixture of 2 normal distributions
rmixnorm(n, mean1 = 0, sd1 = 1, mean2 = 0, sd2 = 1, p = 0.5)
Vector of random numbers from the specified mixture of normals.
number of observations
mean of the first normal
standard deviation of the first normal
mean of the second normal
standard deviation of the second normal
probability of the first normal