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.

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% of proportions to fall within?

wide

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

See also

Other simulation Functions that contribute to simulation pipeline.: beta_par(), default_parameters, intervention_proportion(), sim_df(), sim_sample()

Other sample_size Generating meta-anlysis sample sizes.: beta_par(), intervention_proportion()