sim_meta | R Documentation |
Simulate meta-analysis data using unstandardized mean difference as effect size.
sim_meta(k, mu, tau2, n1, n2 = NULL, v = 1)
k |
number of studies. |
mu |
average effect size. |
tau2 |
between studies heterogeneity. |
n1 |
sample size for the first group. |
n2 |
sample size for the second group. Default to |
v |
pooled within-study variance. Default to |
dataframe with simulated data
# simulate equal-effects model with 10 studies, 30 participants in each study
# and an effect size of 0.5
sim_meta(10, 0.5, 0, 30, 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.