You are on page 1of 1

Alle formules week 11 Data (R)

cm = glm(d$Default~d$Age+d$Income+d$TimeWithBank+d$AMBalance+d$Employed+d$OtherCC,
family = binomial(link='logit'))
cm$fitted.values[1]
summary(cm)
rm = glm(d$Default~d$Age+d$Income+d$Employed+d$OtherCC, family =
binomial(link='logit'))
anova(rm,cm, test = "Chisq")

t =table(d$y,as.double(cm$fitted.values>0.5),dnn=c("Echt", "Pred"))
prop.table(t)

You might also like