The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


tips:comp_two_independent_estimates

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tips:comp_two_independent_estimates [2021/05/04 11:06]
Wolfgang Viechtbauer
tips:comp_two_independent_estimates [2021/11/08 15:49] (current)
Wolfgang Viechtbauer
Line 49: Line 49:
 </code> </code>
  
-We can now compare the two estimates (i.e., the estimated average log risk ratios) by feeding them back to the ''rma()'' function and using the variable to distinguish the two estimates as a moderator. We use a fixed-effects model, because the (residual) heterogeneity within each subset has already been accounted for by fitting random-effects models above.+We can now compare the two estimates (i.e., the estimated average log risk ratios) by feeding them back to the ''rma()'' function and using the variable to distinguish the two estimates as a moderator. We use a fixed-effects meta-regression model for this purpose, because the (residual) heterogeneity within each subset has already been accounted for by fitting random-effects models above.
 <code rsplus> <code rsplus>
 rma(estimate, sei=stderror, mods = ~ meta, method="FE", data=dat.comp, digits=3) rma(estimate, sei=stderror, mods = ~ meta, method="FE", data=dat.comp, digits=3)
tips/comp_two_independent_estimates.txt ยท Last modified: 2021/11/08 15:49 by Wolfgang Viechtbauer