# The metafor Package

A Meta-Analysis Package for R

### Site Tools

analyses:morris2008

# Differences

This shows you the differences between two versions of the page.

 analyses:morris2008 [2021/08/27 07:27]Wolfgang Viechtbauer analyses:morris2008 [2021/11/08 13:17]Wolfgang Viechtbauer Both sides previous revision Previous revision 2021/11/08 13:17 Wolfgang Viechtbauer 2021/08/27 07:27 Wolfgang Viechtbauer 2021/01/16 09:55 Wolfgang Viechtbauer 2017/03/19 13:09 external edit 2021/11/08 13:17 Wolfgang Viechtbauer 2021/08/27 07:27 Wolfgang Viechtbauer 2021/01/16 09:55 Wolfgang Viechtbauer 2017/03/19 13:09 external edit Line 99: Line 99: ==== The Actual Meta-Analysis ==== ==== The Actual Meta-Analysis ==== - For the actual meta-analysis part, we simply pass the ''yi'' and ''vi'' values to the ''rma()'' function. For example, a fixed-effects model can be fitted with: + For the actual meta-analysis part, we simply pass the ''yi'' and ''vi'' values to the ''rma()'' function. For example, an equal-effects model can be fitted with: - rma(yi, vi, data=dat, method="FE", digits=2) + rma(yi, vi, data=dat, method="EE", digits=2) - Fixed-Effects Model (k = 5) + Equal-Effects Model (k = 5) - Test for Heterogeneity: + I^2 (total heterogeneity / total variability):   9.69% + H^2 (total variability / sampling variability):  1.11 + + Test for Heterogeneity: Q(df = 4) = 4.43, p-val = 0.35 Q(df = 4) = 4.43, p-val = 0.35 Model Results: Model Results: - estimate       se     zval     pval    ci.lb    ci.ub + estimate    se  zval  pval  ci.lb  ci.ub - 0.95     0.14     6.62     <.01     0.67     1.23      *** + 0.95  0.14  6.62  <.01   0.67   1.23  *** --- --- - Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 + Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Note that these results are slightly different than the ones in Table 5 due to the different ways of estimating the sampling variances. Note that these results are slightly different than the ones in Table 5 due to the different ways of estimating the sampling variances. 