Description Usage Arguments Value
View source: R/random_pairedN.R
Generates random paired sample sizes (N). For example, sample sizes for a treatment group and samples sizes for a control group. These paired N are often correlated within studies.
1 | random_pairedN(K, mean = 15, min = 3, correlation = 0.95)
|
K |
Number of paired sample sizes to generate. |
mean |
The lambda (dispersion parameter) of a Poisson distribution. The default is 15, which will generate sample sizes that on average will center around N = 15. |
min |
A non-negative integer that specifies the minimum sample size that can be generated. Default is N = 3. |
correlation |
A correlation ranging from zero to one that specifies how 'similar' the paired sample sizes will be to one another. Default is 0.95 (i.e. the paired sample sizes will be highly correlated). |
A data table of paired random sample sizes (N).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.