c:ms:2025:w07_anova_note
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
c:ms:2025:w07_anova_note [2025/04/10 16:12] – hkimscil | c:ms:2025:w07_anova_note [2025/04/16 10:40] (current) – [R square: output] hkimscil | ||
---|---|---|---|
Line 772: | Line 772: | ||
></ | ></ | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
====== Post hoc test ====== | ====== Post hoc test ====== | ||
[[:post hoc test]] | [[:post hoc test]] | ||
Line 829: | Line 832: | ||
# 이제 위의 점수를 .05 레벨에서 비교할 점수를 찾아 비교한다 | # 이제 위의 점수를 .05 레벨에서 비교할 점수를 찾아 비교한다 | ||
# qtukey 펑션을 이용한다 | # qtukey 펑션을 이용한다 | ||
- | t.crit <- qtukey( .95, nmeans = 3, df = 45) | + | t.crit <- qtukey( .95, nmeans = 4, df = 30 * 4) |
t.crit | t.crit | ||
Line 934: | Line 937: | ||
> # 이제 위의 점수를 .05 레벨에서 비교할 점수를 찾아 비교한다 | > # 이제 위의 점수를 .05 레벨에서 비교할 점수를 찾아 비교한다 | ||
> # qtukey 펑션을 이용한다 | > # qtukey 펑션을 이용한다 | ||
- | > t.crit <- qtukey( .95, nmeans = 3, df = 45) | + | > t.crit <- qtukey( .95, nmeans = 4, df = 30 * 4) |
> t.crit | > t.crit | ||
- | [1] 3.427507 | + | [1] 3.684589 |
> | > | ||
> # 혹은 R이 보통 제시한 거꾸로 방법으로 보면 | > # 혹은 R이 보통 제시한 거꾸로 방법으로 보면 | ||
Line 1026: | Line 1029: | ||
< | < | ||
> ss.total | > ss.total | ||
- | [1] 4842.5 | + | [1] 3900 |
> ss.between | > ss.between | ||
- | [1] 682.5 | + | [1] 300 |
> r.sq <- ss.between / ss.total | > r.sq <- ss.between / ss.total | ||
> r.sq | > r.sq | ||
- | [1] 0.1409396 | + | [1] 0.07692308 |
> | > | ||
> # then . . . . | > # then . . . . | ||
Line 1043: | Line 1046: | ||
Residuals: | Residuals: | ||
| | ||
- | -14.8928 -4.3342 -0.3732 | + | -13.1181 -3.9308 -0.3568 |
Coefficients: | Coefficients: | ||
Estimate Std. Error t value Pr(> | Estimate Std. Error t value Pr(> | ||
- | (Intercept) | + | (Intercept) |
- | groupB | + | groupB |
- | groupC | + | groupC |
- | groupD | + | groupD |
--- | --- | ||
Signif. codes: | Signif. codes: | ||
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 | 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 | ||
- | Residual standard error: 5.988 on 116 degrees of freedom | + | Residual standard error: 5.571 on 116 degrees of freedom |
- | Multiple R-squared: | + | Multiple R-squared: |
- | F-statistic: | + | F-statistic: |
> anova(lm.res) | > anova(lm.res) | ||
Line 1063: | Line 1066: | ||
Response: values | Response: values | ||
- | Df Sum Sq Mean Sq F value Pr(> | + | Df Sum Sq Mean Sq F value Pr(> |
- | group | + | group |
- | Residuals 116 4160.0 | + | Residuals 116 3600 31.034 |
--- | --- | ||
Signif. codes: | Signif. codes: | ||
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 | 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 | ||
> | > | ||
- | > | + | |
</ | </ | ||
c/ms/2025/w07_anova_note.1744269176.txt.gz · Last modified: 2025/04/10 16:12 by hkimscil