This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
pe:r-lang [2019/04/19 10:00] 218.186.146.102 |
pe:r-lang [2020/03/24 02:34] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * Use the library | * Use the library | ||
| + | <code rsplus> | ||
| library(tidyr) | library(tidyr) | ||
| getwd() | getwd() | ||
| Line 19: | Line 20: | ||
| | | ||
| hist(vsltime$time, | hist(vsltime$time, | ||
| + | </ | ||
| | | ||
| {{: | {{: | ||
| + | |||
| Histogram to check shape of distribution --> looks skewed to the right | Histogram to check shape of distribution --> looks skewed to the right | ||
| + | <code rsplus> | ||
| > shapiro.test(vsltime$time) | > shapiro.test(vsltime$time) | ||
| Line 29: | Line 33: | ||
| data: vsltime$time | data: vsltime$time | ||
| W = 0.91157, p-value = 1.388e-14 | W = 0.91157, p-value = 1.388e-14 | ||
| + | |||
| + | </ | ||
| Shapiro-Wilk test for normality --> not normal distribution | Shapiro-Wilk test for normality --> not normal distribution | ||
| + | <code rsplus> | ||
| > hist(vsl$success) | > hist(vsl$success) | ||
| + | </ | ||
| | | ||
| {{: | {{: | ||
| + | <code rsplus> | ||
| > shapiro.test(vsl$success) | > shapiro.test(vsl$success) | ||
| Shapiro-Wilk normality test | Shapiro-Wilk normality test | ||
| data: vsl$success | data: vsl$success | ||
| W = 0.9117, p-value = 0.0002277 | W = 0.9117, p-value = 0.0002277 | ||
| - | | + | </ |
| Some other analyses: | Some other analyses: | ||
| + | <code rsplus> | ||
| > plot(vsl$exp, | > plot(vsl$exp, | ||
| > plot(vsl$exp, | > plot(vsl$exp, | ||
| > plot(vsl$exp, | > plot(vsl$exp, | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Suggests that the first few years of experience does not seem to make a difference to performance, | ||
| + | |||
| + | ===Spread=== | ||
| + | <code rsplus> | ||
| + | > stem(((vsl$totnum/ | ||
| + | |||
| + | The decimal point is 1 digit(s) to the left of the | | ||
| + | 2 | 5 | ||
| + | 3 | | ||
| + | 4 | | ||
| + | 5 | | ||
| + | 6 | 1333 | ||
| + | 7 | 1111111111112559999999999 | ||
| + | 8 | 1111177777888888888888888 | ||
| + | 9 | 44444444 | ||
| + | 10 | 0 | ||
| + | |||
| + | > stem(vsl$rate) | ||
| + | |||
| + | The decimal point is 1 digit(s) to the left of the | | ||
| + | 0 | 0 | ||
| + | 2 | | ||
| + | 4 | 00007 | ||
| + | 6 | 07777771111155555 | ||
| + | 8 | 0000003333366666888 | ||
| + | 10 | 0000000000000000000000 | ||
| + | </ | ||
| + | |||
| + | See also [[r: | ||
| - | {{:pe:successrate_number_vs_exp.png?200|}} | + | ====Sources==== |
| - | Suggests that the first few years of experience does not seem to make a difference to performance, | + | * http:// |
| + | * https://www.rdocumentation.org/ | ||
| + | * Using subset | ||
| + | * https:// | ||
| + | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||