Learn R Programming

BSDA (version 1.2.0)

Twin: Intelligence test scores for identical twins in which one twin is given a drug

Description

Data for Exercise 7.54

Usage

Twin

Arguments

Format

A data frame/tibble with nine observations on three variables

twinA

score on intelligence test without drug

twinB

score on intelligence test after taking drug

differ

twinA - twinB

References

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

Examples

Run this code
# NOT RUN {
qqnorm(Twin$differ)
qqline(Twin$differ)
shapiro.test(Twin$differ)
t.test(Twin$twinA, Twin$twinB, paired = TRUE)

# }

Run the code above in your browser using DataLab