Description Usage Arguments Value Examples
View source: R/original/Additional file 2.R View source: R/simulation.R
Generates a random sample by mixing two distributions.
1 | rmix(n, p, rdist1, rdist2)
|
n |
Number of samples to draw. |
p |
Proportion of samples to draw from rdist1 vs rdist2 (true proportion taken as the fraction of random uniform values smaller than p). |
rdist1 |
User-defined function for generating random samples
(must take |
rdist2 |
User-defined function for generating random samples
(must take |
A vector of n
values sampled from rdist1
and
rdis2
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.