`R/BSDA-package.R`

`Leader.Rd`

Data for Exercise 7.31

`Leader`

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

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

```
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 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
#>
```