random_pairedN: Random generation of paired sample sizes (N) for study...

Description Usage Arguments Value

View source: R/random_pairedN.R

Description

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.

Usage

1
random_pairedN(K, mean = 15, min = 3, correlation = 0.95)

Arguments

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).

Value

A data table of paired random sample sizes (N).


metagear documentation built on Feb. 15, 2021, 5:09 p.m.