r:chi-square_test:output01
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| r:chi-square_test:output01 [2025/12/02 22:39] – created hkimscil | r:chi-square_test:output01 [2025/12/02 22:41] (current) – hkimscil | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| Neither | Neither | ||
| Right 4 143 | Right 4 143 | ||
| - | > round(e, | + | > round(e, |
| - | | + | Left Right |
| - | Left 2.911 35.089 | + | Left 2.91 35.09 |
| - | Neither | + | Neither |
| - | Right 11.260 135.740 | + | Right 11.26 135.74 |
| - | > r <- (e-o)/ | + | > res <- (e-o)/ |
| - | > r | + | > round(res, |
| - | | + | Left Right |
| - | Left -3.5692556 | + | Left -3.57 1.03 |
| - | Neither -0.5979674 | + | Neither -0.60 0.17 |
| - | Right 2.1634665 | + | Right 2.16 -0.62 |
| - | > chisq.cal <- sum((e-o)^2/e) | + | > chisq.cal <- sum(res^2) |
| > p.val <- pchisq(chisq.cal, | > p.val <- pchisq(chisq.cal, | ||
| > chisq.cal | > chisq.cal | ||
| Line 80: | Line 80: | ||
| > | > | ||
| > legend(" | > legend(" | ||
| - | + | + | + fill = c(" |
| + | > | ||
| + | > | ||
| </ | </ | ||
| + | {{.: | ||
r/chi-square_test/output01.1764715180.txt.gz · Last modified: by hkimscil
