Description Usage Arguments Value Author(s) See Also Examples
Generate a random sample from a mixture of binomials.
| 1 | rmix.binom(n, alpha, theta, size)
 | 
| n | sample size | 
| alpha | vector of mixture proportions of length m, the order of the mixture. | 
| theta | vector of probabilities of success of component distributions. | 
| size | number of trials. | 
Return sample of size n from an m-component binomial mixture.
Shaoting Li, Jiahua Chen and Pengfei Li
emtest.binom, plotmix.binom, pmle.binom
| 1 2 3 4 | #generate a random sample from a 2 component binomial mixture,
#plot the histogram of the data
x <- rmix.binom(200,c(0.3,0.7),c(0.4,0.6),20)
hist(x)
 | 

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.