View source: R/simulation_settings.R
rmixture | R Documentation |
The resulting distribution is mean zero, variance one. X ~ N(-sqrt(1-sd^2),sd^2) wp 0.5, N(sqrt(1-sd^2),sd^2) wp 0.5.
rmixture(n, sd)
n |
number of observations. |
sd |
standard deviation of each Gaussian. |
vector of length n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.