40 likes | 46 Views
Day 9. Logistic Regression. logit versus logistic. logit true test logistic true test logistic true test age. Logistic functions. lstat lroc lsens. Fitted Probabilities. predict p0 if test==0 predict p1 if test==1 sort age graph p0 p1 true age, c(ll.) s(ii.) ylab xlab l1(“P”)
E N D
Day 9 Logistic Regression
logit versus logistic • logit true test • logistic true test • logistic true test age
Logistic functions • lstat • lroc • lsens
Fitted Probabilities • predict p0 if test==0 • predict p1 if test==1 • sort age • graph p0 p1 true age, c(ll.) s(ii.) ylab xlab l1(“P”) • predict xb0 if test==0, xb • predict xb1 if test==1, xb • graph xb0 xb1 age, c(ll) s(ii) ylab xlab l1(“Logit(p)=B0 + B1age”)