Data for Exercise 7.31

Leader

Format

A data frame/tibble with 34 observations on two variables

age

a character vector indicating age with values under35 and over35

score

score on a leadership exam

References

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

Examples


boxplot(score ~ age, data = Leader, col = c("gray", "green"))

t.test(score ~ age, data = Leader)
#> 
#> 	Welch Two Sample t-test
#> 
#> data:  score by age
#> t = 1.1462, df = 60.522, p-value = 0.2562
#> alternative hypothesis: true difference in means between group over35 and group under35 is not equal to 0
#> 95 percent confidence interval:
#>  -2.579337  9.505807
#> sample estimates:
#>  mean in group over35 mean in group under35 
#>              27.58824              24.12500 
#>