summary_of_hypothesis_testing:output01
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| summary_of_hypothesis_testing:output01 [2025/11/30 22:44] – hkimscil | summary_of_hypothesis_testing:output01 [2025/11/30 22:50] (current) – hkimscil | ||
|---|---|---|---|
| Line 61: | Line 61: | ||
| > diff <- m.treated.s-mean(p1) | > diff <- m.treated.s-mean(p1) | ||
| > diff/se.z1 | > diff/se.z1 | ||
| - | [1] 0.1983834 | + | [1] 0.5253907 |
| > zscore <- abs(diff/ | > zscore <- abs(diff/ | ||
| > pnorm(zscore, | > pnorm(zscore, | ||
| - | [1] 0.8427451 | + | [1] 0.5993116 |
| > tscore <- zscore | > tscore <- zscore | ||
| > pt(tscore, df=n.s-1, lower.tail = F)*2 | > pt(tscore, df=n.s-1, lower.tail = F)*2 | ||
| - | [1] 0.844416 | + | [1] 0.6041323 |
| > | > | ||
| > # usual way - using sample' | > # usual way - using sample' | ||
| Line 74: | Line 74: | ||
| > se.s <- sqrt(var(treated.s)/ | > se.s <- sqrt(var(treated.s)/ | ||
| > se.s | > se.s | ||
| - | [1] 1.900271 | + | [1] 1.83652 |
| > tscore <- diff/se.s | > tscore <- diff/se.s | ||
| > tscore | > tscore | ||
| - | [1] 0.2087948 | + | [1] 0.572159 |
| > | > | ||
| > | > | ||
| Line 110: | Line 110: | ||
| > abline(v=m.treated.s, | > abline(v=m.treated.s, | ||
| > se.s | > se.s | ||
| - | [1] 1.900271 | + | [1] 1.83652 |
| > se.z1 | > se.z1 | ||
| [1] 2 | [1] 2 | ||
| > | > | ||
| > c(m.treated.s-2*se.s, | > c(m.treated.s-2*se.s, | ||
| - | [1] | + | [1] |
| > c <- qt(0.975, n.s-1) | > c <- qt(0.975, n.s-1) | ||
| > c | > c | ||
| [1] 2.063899 | [1] 2.063899 | ||
| > c(m.treated.s-c*se.s, | > c(m.treated.s-c*se.s, | ||
| - | [1] | + | [1] |
| > m.p2 | > m.p2 | ||
| [1] 104 | [1] 104 | ||
| Line 144: | Line 144: | ||
| > tscore <- abs(diff/ | > tscore <- abs(diff/ | ||
| > pt(tscore, df=n.s-1, lower.tail = F) * 2 | > pt(tscore, df=n.s-1, lower.tail = F) * 2 | ||
| - | [1] 0.8363704 | + | [1] 0.5725352 |
| > t.test(treated.s, | > t.test(treated.s, | ||
| Line 150: | Line 150: | ||
| data: treated.s | data: treated.s | ||
| - | t = 0.20879, df = 24, p-value = 0.8364 | + | t = 0.57216, df = 24, p-value = 0.5725 |
| alternative hypothesis: true mean is not equal to 100 | alternative hypothesis: true mean is not equal to 100 | ||
| 95 percent confidence interval: | 95 percent confidence interval: | ||
| - | | + | |
| sample estimates: | sample estimates: | ||
| mean of x | mean of x | ||
| - | 100.3968 | + | 101.0508 |
| > | > | ||
| </ | </ | ||
| - | {{.: | + | {{.: |
| - | {{.: | + | {{.: |
| - | {{.: | + | {{.: |
| + | |||
summary_of_hypothesis_testing/output01.1764542680.txt.gz · Last modified: by hkimscil
