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 revisionNext revisionBoth sides next revision | ||
tips:models_with_or_without_intercept [2021/02/12 16:09] – Wolfgang Viechtbauer | tips:models_with_or_without_intercept [2021/11/10 20:19] – Wolfgang Viechtbauer | ||
---|---|---|---|
Line 76: | Line 76: | ||
The '' | The '' | ||
- | A different way to conduct | + | A different way of conducting |
<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 206: | Line 206: | ||
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 226: | ||
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 244: | ||
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