German | R Documentation |
Data for Exercise 7.60
German
A data frame/tibble with ten observations on three variables
a character variable indicating student number
a character variable with values Before
and After
to indicate when the student received experimental instruction in German
the number of errors in copying a German passage
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
## Not run:
tidyr::spread(German, when, errors) -> GermanWide
t.test(Pair(After, Before) ~ 1, data = GermanWide)
wilcox.test(Pair(After, Before) ~ 1, data = GermanWide)
T8 <- tidyr::spread(German, when, errors) %>%
mutate(di = After - Before, adi = abs(di), rk = rank(adi), srk = sign(di)*rk)
T8
qqnorm(T8$di)
qqline(T8$di)
t.test(T8$srk)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.