Learn R Programming

BSDA (version 1.2.1)

Habits: Study habits of students in two matched school districts

Description

Data for Exercise 7.57

Usage

Habits

Arguments

Format

A data frame/tibble with 11 observations on four variables

A

study habit score

B

study habit score

differ

B minus A

signrks

the signed-ranked-differences

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

shapiro.test(Habits$differ)
qqnorm(Habits$differ)
qqline(Habits$differ)
wilcox.test(Habits$B, Habits$A, paired = TRUE, alternative = "less")
t.test(Habits$signrks, alternative = "less")

if (FALSE) {
library(ggplot2)
ggplot2::ggplot(data = Habits, aes(x = differ)) + 
           geom_dotplot(fill = "blue") + 
           theme_bw()
}

Run the code above in your browser using DataLab