r:t-test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:t-test [2023/10/13 04:41] – [One sample t-test against population parameter mu and sigma] hkimscil | r:t-test [2024/04/14 23:52] (current) – [One sample t-test against population parameter mu and sigma] hkimscil | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| > potato_sample_large <- rnorm2(2500, | > potato_sample_large <- rnorm2(2500, | ||
| > mean(potato_sample_large) | > mean(potato_sample_large) | ||
| - | [1] 191 | + | [1] 194 |
| > sqrt(var(potato_sample_large)) | > sqrt(var(potato_sample_large)) | ||
| [1] 20 | [1] 20 | ||
| Line 82: | Line 82: | ||
| t <- (sample_mean - pop_mean) / (sample_sd/ | t <- (sample_mean - pop_mean) / (sample_sd/ | ||
| - | abs(qt(0.05/ | + | abs(qt(0.05/ |
| # or | # or | ||
r/t-test.1697172104.txt.gz · Last modified: by hkimscil
