O'Reilly logo

R Statistical Application Development by Example Beginner's Guide by Prabhanjan Narayanachar Tattar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – residual plots for the logistic regression model

The residuals and fitted functions will be used to obtain the residual plots from the probit and logistic regression models.

  1. Initialize a graphics windows for three panels with par(mfrow=c(1,3), oma = c(0,0,3,0)). The oma option ensures that we can appropriately title the grand output.
  2. Plot Response Residuals against the Fitted Values of the pass_logistic model with:
    plot(fitted(pass_logistic), residuals(pass_logistic,"response"), col= "red", xlab="Fitted Values", ylab="Residuals",cex.axis=1.5, cex.lab=1.5) 

    The reason of xlab and ylab has been explained in the earlier chapters.

  3. For the purpose of comparison with the probit regression model, add their response residuals to the previous ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required