sim_sample.Rd
Given a distribution, parameters, sample size, generate a sample.
sim_sample(
n = 18,
this_study_error = 0.2,
rdist = "norm",
par = list(mean = 20, sd = 0.2),
control = TRUE,
effect_ratio = 1.2
)
sample size
this study error, gamma_k / 2, under the assumption random effect variance is split between two.
string indicating distribution, "norm", "lnorm", "exp", or "pareto"
list of parameter arguments
value of first parameter of distribution is determined by median ratio
ratio of population effects intervention / control
Other simulation Functions that contribute to simulation pipeline.:
beta_par()
,
default_parameters
,
intervention_proportion()
,
sim_df()
,
sim_n()