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 – understanding the constants

The probit regression model is built for the Pass variable as a function of the Sat score using the glm R function and the argument binomial(probit).

  1. Using the glm function and the binomial(probit) option we can fit the probit model for Pass as a function of the Sat score:
    pass_probit <- glm(Pass~Sat,data=sat,binomial(probit))
  2. The details about the pass_probit glm object are fetched using summary(pass_probit).

    The summary function does not give a measure of R2, the coefficient of determination, as we obtained for the linear regression model. In general such a measure is not exactly available for the GLMs. However, certain pseudo-R2 measures are available and we will use pR2 function from the pscl package. ...

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