Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Stress

Short-term memory test scores on 12 subjects before and after a stressful situation


Description

Data for Example 7.20

Usage

Stress

Format

A data frame/tibble with 12 observations on two variables

prestress

short term memory score before being exposed to a stressful situation

poststress

short term memory score after being exposed to a stressful situation

References

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

Examples

diff <- Stress$prestress - Stress$poststress
qqnorm(diff)
qqline(diff)
t.test(diff)
t.test(Stress$prestress, Stress$poststress, paired = TRUE)
## Not run: 
wilcox.test(Stress$prestress, Stress$poststress, paired = TRUE)

## End(Not run)

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.