Learn R Programming

BSDA (version 1.2.0)

Shkdrug: Effects of a drug and electroshock therapy on the ability to solve simple tasks

Description

Data for Exercises 10.11 and 10.12

Usage

Shkdrug

Arguments

Format

A data frame/tibble with 64 observations on two variables

treatment

type of treament Drug/NoS, Drug/Shk, NoDg/NoS, or NoDrug/S

response

number of tasks completed in a 10-minute period

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 {
boxplot(response ~ treatment, data = Shkdrug, col = "gray")
model <- lm(response ~ treatment, data = Shkdrug)
anova(model)
rm(model)

# }

Run the code above in your browser using DataLab