Skip to content

Binary logistic regression online: odds ratios, Nagelkerke R²

Binary logistic regression is the model to use when the outcome has only two values, such as bought or did not buy, used a service or not, left or stayed; aim for at least 10 cases in the rarer outcome group per parameter (Peduzzi et al., 1996). Upload your data, choose the outcome and the predictors, and the tool estimates the model as SPSS Binary Logistic does and writes three tables plus the results paragraph.

  1. Upload an Excel or CSV file (one row per case), or try the sample data.
  2. Choose the two-valued dependent variable, the value coded as 1, and the predictors.
  3. Run the model, then download the Word file or copy the tables and text.

Do the whole thesis in one place: save your data as a project and the next tools load it for you. Open Project →

1. Add your data
One row per case, with column names in the first row. The dependent variable has exactly two values (Yes/No, 1/0, Bought/Did not buy). Predictors can be numeric (age, construct scores) or categorical (gender, region).

Send to your study group

When the whole group uses one tool, your numbers match when you merge chapters.

Was this tool useful? Feedback / report a bug (by email; please do not paste real data).

When to use logistic regression

How to read the three tables

Reporting it in APA 7 style

Report the omnibus chi-square with its degrees of freedom and p, Nagelkerke R², the Hosmer–Lemeshow result and the percentage correctly classified, then each predictor with B, Wald, p and the odds ratio with its 95% CI. Drop the leading zero for p and R², which cannot exceed 1. A template: “The model was statistically significant, χ²(df) = value, p < .001, Nagelkerke R² = value. Each one-unit increase in perceived usefulness increased the odds of using the service by a factor of Exp(B), holding the other predictors constant.” Always state the reference category for categorical predictors. The tool writes this paragraph from your results and saves it to the results chapter report builder.

Worked example: the built-in sample data

Click “Use sample data” to load 300 student responses. The outcome, UsedPanel (Yes/No), records whether the student used a paid survey-panel service; the predictors are perceived usefulness (PU1–PU3), cost concern (CP1–CP3), year of study and gender. The tool offers the construct scores PU and CP, already ticked, plus gender and year as categorical predictors, and sets “Yes” as the event. The coefficient table then shows how the odds of using the service change with each predictor.

Common problems

FAQ

What is the difference between an odds ratio and a probability?

Odds are the probability of the event divided by the probability of no event. An odds ratio of 2 doubles the odds, which is not the same as doubling the probability, especially when the event is common.

Do I need SPSS to check the results?

No, but it is worth comparing once. The estimates use maximum likelihood (Newton–Raphson), as SPSS Binary Logistic and R's glm with a binomial family do, and the Hosmer–Lemeshow test groups cases as SPSS does.

My Hosmer–Lemeshow test is significant. Is the model useless?

Not necessarily, but predicted probabilities do not match observed proportions in some groups. Consider adding predictors or a different functional form (Hosmer et al., 2013), and note it in your limitations.

I only have one categorical predictor. Do I need regression?

A chi-square test of the crosstab answers the same question more simply.

References

One of the free research tools of Research Corner.