tips:models_with_or_without_intercept
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:models_with_or_without_intercept [2021/10/29 10:55] – Wolfgang Viechtbauer | tips:models_with_or_without_intercept [2021/12/12 13:08] – Wolfgang Viechtbauer | ||
---|---|---|---|
Line 78: | Line 78: | ||
A different way of conducting the same test is to use the '' | A different way of conducting the same test is to use the '' | ||
<code rsplus> | <code rsplus> | ||
- | anova(res, | + | anova(res, |
</ | </ | ||
to test the two hypotheses | to test the two hypotheses | ||
Line 112: | Line 112: | ||
so this contrast reflects how different systematic allocation is compared to random allocation. Using the '' | so this contrast reflects how different systematic allocation is compared to random allocation. Using the '' | ||
<code rsplus> | <code rsplus> | ||
- | anova(res, | + | anova(res, |
</ | </ | ||
<code output> | <code output> | ||
Line 156: | Line 156: | ||
Signif. codes: | Signif. codes: | ||
</ | </ | ||
- | (I shortened the names of the coefficients in the output above to make the table under the '' | + | (I shortened the names of the coefficients in the output above to make the table under the '' |
==== Model Without Intercept ==== | ==== Model Without Intercept ==== | ||
Line 165: | Line 165: | ||
res | res | ||
</ | </ | ||
+ | Alternatively, | ||
<code output> | <code output> | ||
Mixed-Effects Model (k = 13; tau^2 estimator: REML) | Mixed-Effects Model (k = 13; tau^2 estimator: REML) | ||
Line 206: | Line 207: | ||
Again, we could use the '' | Again, we could use the '' | ||
<code rsplus> | <code rsplus> | ||
- | anova(res, | + | anova(res, |
</ | </ | ||
<code output> | <code output> | ||
Line 226: | Line 227: | ||
It is important to realize that this does not test whether there are differences between the different forms of allocation (this is what we tested earlier in the model that included the intercept term). However, we can again use contrasts of the model coefficients to test differences between the levels. Let's test all pairwise differences (i.e., between random and alternating allocation, between systematic and alternating allocation, and between systematic and random allocation): | It is important to realize that this does not test whether there are differences between the different forms of allocation (this is what we tested earlier in the model that included the intercept term). However, we can again use contrasts of the model coefficients to test differences between the levels. Let's test all pairwise differences (i.e., between random and alternating allocation, between systematic and alternating allocation, and between systematic and random allocation): | ||
<code rsplus> | <code rsplus> | ||
- | anova(res, | + | anova(res, |
</ | </ | ||
<code output> | <code output> | ||
Line 244: | Line 245: | ||
Note that the output does not contain an omnibus test for the three contrasts because the matrix with the contrast coefficients ('' | Note that the output does not contain an omnibus test for the three contrasts because the matrix with the contrast coefficients ('' | ||
<code rsplus> | <code rsplus> | ||
- | anova(res, | + | anova(res, |
</ | </ | ||
<code output> | <code output> |
tips/models_with_or_without_intercept.txt · Last modified: 2022/08/03 11:34 by Wolfgang Viechtbauer