c:ma:2016:schedule:week09_answer
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| c:ma:2016:schedule:week09_answer [2016/11/09 01:15] – [E.g. 6] hkimscil | c:ma:2016:schedule:week09_answer [2016/11/09 01:22] (current) – [E.g. 6] hkimscil | ||
|---|---|---|---|
| Line 453: | Line 453: | ||
| > smoke <- c(18, | > smoke <- c(18, | ||
| > nosmoke <- c(16, | > nosmoke <- c(16, | ||
| - | > t.test(smoke, | + | |
| + | > sn <- data.frame(smoke, nosmoke) | ||
| + | > ss <- stack(sn) | ||
| + | > plot(ss$values~ss$ind) | ||
| + | </ | ||
| + | |||
| + | < | ||
| Welch Two Sample t-test | Welch Two Sample t-test | ||
| - | data: | + | data: |
| - | t = 2.2573, df = 16.376, p-value = 0.03798 | + | t = -2.2573, df = 16.376, p-value = 0.03798 |
| alternative hypothesis: true difference in means is not equal to 0 | alternative hypothesis: true difference in means is not equal to 0 | ||
| 95 percent confidence interval: | 95 percent confidence interval: | ||
| - | 0.1628205 | + | -5.0371795 |
| sample estimates: | sample estimates: | ||
| - | mean of x mean of y | + | mean in group nosmoke |
| - | 20.1 | + | |
| + | |||
| + | > | ||
| > | > | ||
c/ma/2016/schedule/week09_answer.1478654143.txt.gz · Last modified: by hkimscil
