Dummy variables ข้อมูลสูญหาย และ interaction

Supervised Learning in R: Classification

Brett Lantz

Instructor

Dummy coding ข้อมูลเชิงหมวดหมู่

# create gender factor
my_data$gender <- factor(my_data$gender,
                         levels = c(0, 1, 2),
                         labels = c("Male", "Female", "Other"))
Supervised Learning in R: Classification

การ impute ข้อมูลสูญหาย

AUC เท่ากัน ROC ต่างกัน

AUC เท่ากัน ROC ต่างกัน

Supervised Learning in R: Classification

Interaction effects

AUC เท่ากัน ROC ต่างกัน

AUC เท่ากัน ROC ต่างกัน

# interaction of obesity and smoking
glm(disease ~ obesity * smoking,
      data = health,
      family = "binomial")
Supervised Learning in R: Classification

มาฝึกกันเถอะ!

Supervised Learning in R: Classification

Preparing Video For Download...