Lecture Overview:

Qualitative Predictors

One Factor with Two Classes

abuse = read.table("Abuse")
head(abuse)

abuse$csa <- as.factor(abuse$csa) # Convert character into factor

class(abuse$csa)
levels(abuse$csa)

Using Indicator Variables

Untitled