r:twoway_anova
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:twoway_anova [2018/05/23 09:04] – [E.g. 1] hkimscil | r:twoway_anova [2018/10/19 08:39] (current) – [e.g. 5] hkimscil | ||
|---|---|---|---|
| Line 218: | Line 218: | ||
| [{{: | [{{: | ||
| - | ===== 5 ===== | + | ===== e.g., 5 ===== |
| download {{: | download {{: | ||
| - | < | + | < |
| > #display the data | > #display the data | ||
| - | > data | + | > stressdata |
| | | ||
| 1 | 1 | ||
| Line 253: | Line 253: | ||
| 27 | 27 | ||
| - | < | + | < |
| - | Call: | + | > stressdata <- read.csv("http:// |
| - | | + | > |
| - | + | > a.mod <- aov(StressReduction~Treatment*Age, | |
| - | Terms: | + | |
| - | d$Treatment d$Age d$Treatment: | + | |
| - | Sum of Squares | + | |
| - | Deg. of Freedom | + | |
| - | + | ||
| - | Residual standard error: 1 | + | |
| - | Estimated effects may be unbalanced | + | |
| - | > a.mod <- aov(d$StressReduction~d$Treatment*d$Age, d) | + | |
| > summary(a.mod) | > summary(a.mod) | ||
| - | | + | |
| - | d$Treatment | + | Treatment |
| - | d$Age 2 162 81 81 1e-09 *** | + | Age 2 162 81 81 1e-09 *** |
| - | d$Treatment:d$Age 4 0 | + | Treatment: |
| - | Residuals | + | Residuals |
| --- | --- | ||
| Signif. codes: | Signif. codes: | ||
| - | ></ | + | > |
| + | </ | ||
| - | < | + | < |
| + | Tukey multiple comparisons of means | ||
| + | 95% family-wise confidence level | ||
| - | Pairwise comparisons using t tests with pooled SD | + | Fit: aov(formula = StressReduction ~ Treatment * Age, data = stressdata) |
| - | data: d$StressReduction and d$Treatment | + | $Treatment |
| + | | ||
| + | mental-medical | ||
| + | physical-medical | ||
| + | physical-mental | ||
| - | | + | > |
| - | mental | + | </ |
| - | physical 0.45 0.45 | + | < |
| + | > TukeyHSD(a.mod, which=" | ||
| + | Tukey multiple comparisons of means | ||
| + | 95% family-wise confidence level | ||
| - | P value adjustment method: none</ | + | Fit: aov(formula = StressReduction |
| - | < | + | |
| - | Pairwise comparisons using t tests with pooled SD | + | $Age |
| + | diff | ||
| + | old-mid | ||
| + | young-mid | ||
| + | young-old | ||
| + | > | ||
| + | </ | ||
| - | data: d$StressReduction and d$Age | ||
| - | |||
| - | mid | ||
| - | old | ||
| - | young 2.5e-05 2.3e-10 | ||
| - | |||
| - | P value adjustment method: none | ||
| - | > | ||
| - | </ | ||
| <WRAP info> | <WRAP info> | ||
| Line 316: | Line 314: | ||
| > | > | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | |||
| - | Pairwise comparisons using t tests with pooled SD | ||
| - | |||
| - | data: d$StressReduction and d$Treatment | ||
| - | |||
| - | | ||
| - | mental | ||
| - | physical 0.45 0.45 | ||
| - | |||
| - | P value adjustment method: none</ | ||
| - | < | ||
| - | |||
| - | Pairwise comparisons using t tests with pooled SD | ||
| - | |||
| - | data: d$StressReduction and d$Age | ||
| - | |||
| - | mid | ||
| - | old | ||
| - | young 2.5e-05 2.3e-10 | ||
| - | |||
| - | P value adjustment method: none | ||
| - | > | ||
| </ | </ | ||
r/twoway_anova.1527033867.txt.gz · Last modified: by hkimscil
