Description Usage Arguments Value Examples
View source: R/original/Additional file 2.R View source: R/simulation.R
Simulates relative standard deviations (coefficients of variation) using a mixture of 2 normal distributions (one subpopulation of less variable measurements and on subpopulation of more variable ones).
1 | simulate_rel_sd(n, par1, par2 = NULL, p = 0.05, con = c(0, 1))
|
n |
Number of samples to draw. |
par1 |
Parameters (mean, sd) for first distribution. |
par2 |
Optional parameters (mean, sd) for second distribution. |
p |
Proportion of samples to draw using |
con |
Optional vector of lower and upper constraints on generated samples. By default, relative standard deviations are limited to between 0 and 1. |
A vector of relative standard deviation values.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.