Learn R Programming

BSDA (version 1.01)

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 with 11 observations on the following 3 variables.

Subject

a numeric vector

Before

a numeric vector

After

a numeric vector

Examples

Run this code
# NOT RUN {
str(Oxytocin)
attach(Oxytocin)
DIF <- Before - After
qqnorm(DIF)
qqline(DIF)
shapiro.test(DIF)
t.test(Before,After,paired=TRUE)
detach(Oxytocin)
# }

Run the code above in your browser using DataLab