Description Usage Arguments Details Value See Also Examples
The function rmixgamma
generates random data from a Gamma mixture model.
1 |
n |
a positive integer specifying the number of observations we want to generate from the mixture model |
pi |
a numeric vector for the proportion of each component |
mu |
a numeric vector for the mean of each component |
sd |
a numeric vector for the standard deviation of each component |
The number of random data from each component n_0 (a vector) is generated from a multinomial
distribution Multinom(n, pi). Then the random data from each component is generated with
the sample sized specified in n_0 and parameters of Gamma distributions specified in
mu
and sd
.
The function rmixgamma
returns a numeric vector of random data from the specified Gamma mixture model.
rmixnormal
, rmixweibull
, rmixlnorm
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.