Learn R Programming

BSDA (version 1.01)

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 with 64 observations on the following 6 variables.

Drug.Shk

a numeric vector

Drug.NoS

a numeric vector

NoDrug.S

a numeric vector

NoDg.NoS

a numeric vector

Treatment

a factor with levels Drug/NoS Drug/Shk NoDg/NoS NoDrug/S

Response

a numeric vector

Examples

Run this code
# NOT RUN {
str(Shkdrug)
attach(Shkdrug)
boxplot(Response~Treatment)
anova(lm(Response~Treatment))
detach(Shkdrug)
# }

Run the code above in your browser using DataLab