weight: vector of probability weights, with length equal to number of components (k). This is assumed to sum to 1; if not, it is normalized.
alpha: vector of non-negative parameters of the Gamma distribution.
beta: vector of non-negative parameters of the Gamma distribution.
Details
Sampling from finite mixture of Gamma distribution, with density:
Pr(x∣w,α,β)=i=1∑kwiGamma(x∣αi,βi),
where
Gamma(x∣αi,βi)=Γ(αi)(βi)αixαi−1e−βix.
Returns
Generated data as an vector with size n.
References
Mohammadi, A., Salehi-Rad, M. R., and Wit, E. C. (2013) Using mixture of Gamma distributions for Bayesian analysis in an M/G/1 queue with optional second service. Computational Statistics, 28(2):683-700, tools:::Rd_expr_doi("10.1007/s00180-012-0323-3")
Mohammadi, A., and Salehi-Rad, M. R. (2012) Bayesian inference and prediction in an M/G/1 with optional second service. Communications in Statistics-Simulation and Computation, 41(3):419-435, tools:::Rd_expr_doi("10.1080/03610918.2011.588358")