Description Usage Arguments Details Value Examples
View source: R/gaussianMixture.R
Draws a sample from a mixture of a standard normal and a non-standard normal with specified mean and standard deviation.
1 |
n |
Size of sample |
pi |
Mixing weight for standard normal component |
mean |
Mean for non-standard normal component |
sd |
Standard deviation for non-standard normal component |
Mixing weights are specified by first element of parameter vector, say pi, as pi and 1-pi.
Sample from mixture process
1 | sam<-rmixture(1e3, 0.1, 2, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.