sim_n: simulate meta-analysis sample sizes

Usage Arguments

View source: R/sim_n.R

Usage

1
2
sim_n(k = 3, min_n = 20, max_n = 200, prop = 0.5,
  prop_error = 0.1, wide = FALSE)

Arguments

k

number of studies, defaults to 3

min_n

lower bound for sample sizes, defaults to 20

max_n

upper bound for sample sizes, defaults to 200

prop

proportion of n we expect

prop_error

what do we expect 90

\item

wideif true, case and control sample sizes are provided in one row

Generate a set of meta-analysis sample sizes. We assume that control and intervention sizes are mostly within some proportion prop of the same sample size.


softloud/metasim documentation built on July 15, 2019, 8:02 p.m.