View source: R/distributions.R
rmixnorm | R Documentation |
Generates random numbers from a mixture of 2 normal distributions
rmixnorm(n, mean1 = 0, sd1 = 1, mean2 = 0, sd2 = 1, p = 0.5)
n |
number of observations |
mean1 |
mean of the first normal |
sd1 |
standard deviation of the first normal |
mean2 |
mean of the second normal |
sd2 |
standard deviation of the second normal |
p |
probability of the first normal |
Vector of random numbers from the specified mixture of normals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.