therapy

0th

Percentile

Therapy Data

A toy data set on outcome in therapy in relation to a personality test (perstest) and a scale of internal-external locus of control (IE) used to illustrate linear and multiple regression.

Keywords
datasets
Usage
data("therapy")
Format

A data frame with 10 observations on the following 4 variables.

sex

a factor with levels F M

perstest

score on a personality test, a numeric vector

therapy

outcome in psychotherapy, a numeric vector

IE

score on a scale of internal-external locus of control, a numeric vector

Aliases
  • therapy
Examples
# NOT RUN {
data(therapy)
plot(therapy ~ perstest, data=therapy, pch=16)
abline(lm(therapy ~ perstest, data=therapy), col="red")

plot(therapy ~ perstest, data=therapy, cex=1.5, pch=16, 
	col=ifelse(sex=="M", "red","blue"))
# }
Documentation reproduced from package matlib, version 0.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.