Learn R Programming

BSDA (version 1.2.1)

Oxytocin: Arterial blood pressure of 11 subjects before and after receiving oxytocin

Description

Data for Exercise 7.86

Usage

Oxytocin

Arguments

Format

A data frame/tibble with 11 observations on three variables

subject

a numeric vector indicating each subject

before

mean arterial blood pressure of subject before receiving oxytocin

after

mean arterial blood pressure of subject after receiving oxytocin

References

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

Examples

Run this code

diff = Oxytocin$after - Oxytocin$before
qqnorm(diff)
qqline(diff)
shapiro.test(diff)
t.test(Oxytocin$after, Oxytocin$before, paired = TRUE)
rm(diff)

Run the code above in your browser using DataLab