tips:comp_two_independent_estimates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tips:comp_two_independent_estimates [2023/02/18 19:24] – Wolfgang Viechtbauer | tips:comp_two_independent_estimates [2024/04/18 10:49] – Wolfgang Viechtbauer | ||
---|---|---|---|
Line 43: | Line 43: | ||
<code rsplus> | <code rsplus> | ||
- | dat.comp <- data.frame(estimate = c(coef(res1), | + | dat.comp <- data.frame(alloc = c(" |
- | meta = c(" | + | estimate = c(coef(res1), |
- | dat.comp | + | stderror = c(res1$se, res2$se), |
+ | | ||
+ | dfround(dat.comp, 3) | ||
</ | </ | ||
<code output> | <code output> | ||
- | | + | |
- | 1 -0.9709645 | + | 1 random |
- | 2 -0.4812706 | + | 2 |
</ | </ | ||
Line 57: | Line 59: | ||
<code rsplus> | <code rsplus> | ||
- | rma(estimate, | + | rma(estimate, |
</ | </ | ||
Line 71: | Line 73: | ||
Model Results: | Model Results: | ||
- | | + | estimate |
- | intrcpt | + | intrcpt |
- | metarandom | + | allocrandom |
--- | --- | ||
Line 79: | Line 81: | ||
</ | </ | ||
- | While we find that studies using random assignment obtain on average larger (i.e., more negative) effects than studies not using random assignment ($b_1 = -0.490$, $SE = 0.351$), the difference between the two estimates is not significant ($z = -1.395$, $p = .163$). | + | While we find that studies using random assignment obtain on average larger (i.e., more negative) effects than studies not using random assignment ($b_1 = -0.490$, $SE = 0.351$), the difference between the two estimates is not statistically |
The test of the difference between the two estimates is really just a [[https:// | The test of the difference between the two estimates is really just a [[https:// | ||
Line 129: | Line 131: | ||
The result is very similar to what we saw earlier: The coefficient corresponding to the '' | The result is very similar to what we saw earlier: The coefficient corresponding to the '' | ||
- | However, the results are not exactly identical. The reason for this is as follows. When we fit separate random-effects models in the two subsets, we are allowing the amount of heterogeneity within each set to be different (as shown earlier, the estimates were $\hat{\tau}^2 = 0.393$ and $\hat{\tau}^2 = 0.212$ for studies using and not using random assignment, respectively). On the other hand, the mixed-effects meta-regression model fitted above has a single variance component for the amount of residual heterogeneity, | + | However, the results are not exactly identical. The reason for this is as follows. When we fit separate random-effects models in the two subsets, we are allowing the amount of heterogeneity within each set to be different (as shown earlier, the estimates were $\hat{\tau}^2 = 0.393$ and $\hat{\tau}^2 = 0.212$ for studies using and not using random assignment, respectively). On the other hand, the mixed-effects meta-regression model fitted above has a single variance component for the amount of residual heterogeneity, |
==== Meta-Regression with All Studies but Different Amounts of (Residual) Heterogeneity ==== | ==== Meta-Regression with All Studies but Different Amounts of (Residual) Heterogeneity ==== | ||
Line 136: | Line 138: | ||
<code rsplus> | <code rsplus> | ||
- | rma.mv(yi, vi, mods = ~ alloc, random = ~ alloc | trial, struct=" | + | rma.mv(yi, vi, mods = ~ alloc, random = ~ alloc | trial, |
+ | struct=" | ||
</ | </ | ||
tips/comp_two_independent_estimates.txt · Last modified: 2024/04/18 11:36 by Wolfgang Viechtbauer