Learn R Programming

BSDA (version 1.01)

Rehab: Rehabilitative potential of 20 prison inmates as judged by two psychiatrists

Description

Data for Exercise 7.61

Usage

Rehab

Arguments

Format

A data frame with 20 observations on the following 3 variables.

Psych1

a numeric vector

Psych2

a numeric vector

differ

a numeric vector

Examples

Run this code
# NOT RUN {
str(Rehab)
attach(Rehab)
qqnorm(differ)
qqline(differ)
shapiro.test(differ)
boxplot(Psych1,Psych2,names=c("Psychiatrist 1","Psychiatrist 2"),
col=c("pink","lightblue"))
t.test(Psych1,Psych2,paired=TRUE)
detach(Rehab)
# }

Run the code above in your browser using DataLab