Loading...
Loading...
Fit a logistic regression for a yes/no outcome, and see each predictor's coefficient, odds ratio, and whether the whole model beats chance.
First row: headers, outcome first as 0/1 (e.g. pass,hours). Each row after that: one observation. The model is fit by Newton-Raphson iteration.
logit(p) = -8.357 + 1.8551·hours
| Term | Coef. | SE | z | p-value | Odds ratio |
|---|---|---|---|---|---|
| Intercept | -8.3569 | 4.781 | -1.748 | 0.0805 | — |
| hours | 1.8551 | 1.0442 | 1.777 | 0.0756 | 6.3926 |
The likelihood-ratio test (χ² = 13.81 on 1 degrees of freedom, p = 0.0002) compares this model with one that has no predictors at all. Each odds ratio shows the multiplicative change in the odds of pass = 1 for a one-unit increase in that predictor, holding the others fixed, as explained in logistic regression.