Description Usage Arguments Value
Simulate from a normal mixture distribution
| 1 | rnormalmix(n, g, return.Z = FALSE)
 | 
| n | Number of points to simulate | 
| g | Object of class normalmix (from ashr package). g has elements pi, mean and sd each of which has class K. | 
| return.Z | if TRUE, also return a vector of indicators indicating which of the K classes each sample belongs to | 
If return.Z=TRUE, returns a list with elements beta (samples) and Z (indicators). Otherwise returns a length n vector of samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.