measuring_central_tendency
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
measuring_central_tendency [2019/09/19 08:53] – [median] hkimscil | measuring_central_tendency [2019/09/19 08:57] – [median] hkimscil | ||
---|---|---|---|
Line 82: | Line 82: | ||
| max | | | | max | | | ||
+ | < | ||
+ | > x <- c(1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8) | ||
+ | > x | ||
+ | [1] 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 6 6 7 8 | ||
+ | > | ||
+ | </ | ||
+ | < | ||
+ | > median(x) | ||
+ | [1] 3 | ||
+ | > mean(x) | ||
+ | [1] 3.44 | ||
+ | > min(x) | ||
+ | [1] 1 | ||
+ | > max(x) | ||
+ | [1] 8 | ||
+ | > quantile(x) | ||
+ | 0% 25% 50% 75% 100% | ||
+ | | ||
+ | > | ||
+ | </ | ||