anova
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
anova [2018/10/18 08:34] – [논문 작성] hkimscil | anova [2018/10/19 07:54] – [F and t value] hkimscil | ||
---|---|---|---|
Line 377: | Line 377: | ||
====== F and t value ====== | ====== F and t value ====== | ||
$$ F = t^{2}$$ | $$ F = t^{2}$$ | ||
+ | < | ||
+ | > head(td) | ||
+ | gender tmobconv out in. mobpeo | ||
+ | 1 2 | ||
+ | 2 2 | ||
+ | 3 1 | ||
+ | 4 2 | ||
+ | 5 2 | ||
+ | 6 2 | ||
+ | > | ||
+ | </ | ||
+ | < | ||
+ | > tmod <- t.test(tmobconv~gender, | ||
+ | > tmod | ||
+ | |||
+ | Two Sample t-test | ||
+ | |||
+ | data: tmobconv by gender | ||
+ | t = -3.0453, df = 1449, p-value = 0.002367 | ||
+ | alternative hypothesis: true difference in means is not equal to 0 | ||
+ | 95 percent confidence interval: | ||
+ | | ||
+ | sample estimates: | ||
+ | mean in group 1 mean in group 2 | ||
+ | | ||
+ | |||
+ | > tmod$statistic^2 | ||
+ | | ||
+ | 9.273615 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | > fmod <- aov(tmobconv~gender, | ||
+ | > summary(fmod) | ||
+ | Df Sum Sq Mean Sq F value Pr(> | ||
+ | gender | ||
+ | Residuals | ||
+ | --- | ||
+ | Signif. codes: | ||
+ | 56 observations deleted due to missingness | ||
+ | > | ||
+ | </ | ||
====== Example ====== | ====== Example ====== |
anova.txt · Last modified: 2022/09/30 09:02 by hkimscil