Regression, NCA and PCA

Fit a yes/no outcome and translate odds ratios into predicted probabilities

Your logistic regression says the event odds are 1.74 times as high for a one-unit difference in a predictor. A colleague puts “the probability increased by 74 percentage points” on a slide. Before presenting it, ask: 74 percentage points from what starting probability? The two measures are different, and the starting profile matters.

This exercise fits a yes/no outcome using the 120-case QuickPLS Pro practice file. You will confirm the event coding, check the model's fit status and turn one odds ratio into a probability comparison for two clearly specified profiles. The data are synthetic.

Fit the outcome coded 0 or 1

  1. Import the CSV and select it. Use Analyze… → Regression under Standalone analysis. Under Regression type, choose Binary logistic (outcome coded 0/1). Assign binary_outcome to Outcome variable and x and z to Predictors. Include no extra controls and keep Include intercept on. The continuous y column belongs to the separate OLS exercise.
  2. Confirm that 1 is the event you intend to model. In the Complete-dataset outcome profile, check for both classes and look for codes other than 0 or 1. The reference uses 120 cases, with 57 events and 63 non-events. Check the analysed count again after fitting because missing required predictor fields could reduce it.
  3. In Configure estimation and inference, review Test direction and Confidence level (%). Use a two-sided comparison and 95% intervals for this example. Maximum iterations caps the fitting process; Log-likelihood tolerance controls the stopping criterion. Neither sets your significance level. Leave the estimation controls unchanged unless you have a reason to alter them, and record what you used. The public answer is a likelihood-based reference, not a promise about version-specific defaults.
  4. Choose Start calculation. Open Binary outcome profile and Estimator convergence before reading Coefficients, Wald inference and the odds ratios. If the fit fails or the results flag separation, stop and investigate rather than interpreting a large estimate. Documented QuickPLS Pro workflow.

Read the fitted equation on its own scale

The independent Python reference gives this equation, with values rounded: log-odds of the event = −0.124045 + 0.554645x − 0.227875z. A one-unit increase in x adds 0.554645 to the fitted log-odds at the same z. The reporting-friendly version is to exponentiate: exp(0.554645) ≈ 1.7413. That multiplies the odds by about 1.74. This is a comparison of fitted profiles, not an estimate of what an intervention would do.

Term Log-odds coefficient Odds ratio Wald 95% odds-ratio interval
x 0.5546 1.7413 1.1152 to 2.7189
z −0.2279 0.7962 0.5501 to 1.1524

The zero-effect reference is 0 for a log-odds coefficient and 1 for an odds ratio. The interval for x is above 1 under the stated Wald calculation. The interval for z spans 1, so estimates in both directions remain compatible with that calculation. A Wald interval uses the coefficient and its estimated standard error; it is not the same as a likelihood-ratio comparison. The model intercept gives the baseline log-odds when both predictors are zero. Exponentiating the intercept gives baseline odds, not an odds ratio between two profiles. Published practice results.

Convert the result to a probability comparison

If p is the probability of event 1, the odds are p ÷ (1 − p). To go the other way, use odds ÷ (1 + odds). The equation gives log-odds, so exponentiate the fitted value to get the odds before converting them to a probability.

Keep z = 0 and move x from 0 to 1:

Fitted profile Log-odds Odds Event probability
x = 0, z = 0 −0.124045 0.8833 0.4690
x = 1, z = 0 0.430600 1.5382 0.6060

The odds increased by a factor of about 1.74, while fitted probability went from 46.9% to 60.6%, a difference of 13.7 percentage points. These are calculated values for two specified profiles, not observed event rates for two groups. The observed prevalence of 57 ÷ 120 = 47.5% describes the full practice sample, not the fitted probability at x = z = 0.

Can the same coefficient give a smaller probability difference elsewhere? Try x = −2 versus x = −1, still with z = 0. The same odds multiplier moves probability from about 22.6% to 33.7%, or roughly 11.1 percentage points. These figures are manual calculations from the rounded reference coefficients. Neither probability difference is an average marginal effect. For a population summary you would need to define how the comparison is averaged across relevant profiles, along with an uncertainty calculation for that summary.

When a large odds ratio is a warning

Suppose everyone above a certain predictor value experiences the event and everyone below it does not. Such a pattern can separate the two classes; a finite ordinary maximum-likelihood estimate may not exist. Check the outcome coding, the number of events, predictor patterns and the saved convergence information. If the model is separated, running more iterations does not make the ordinary estimate finite. A different modelling strategy may be needed, but that is a separate analysis, not a reinterpretation of the failed results. Albert and Anderson on separation and existence of logistic estimates.

Example write-up: “In 120 synthetic observations (57 events coded 1), the estimated odds ratio for a one-unit higher x was 1.74 (Wald 95% CI 1.12 to 2.72), conditional on z. At z = 0, fitted event probability was 46.9% for x = 0 and 60.6% for x = 1. These are comparisons under the fitted model, not causal effects or validation on new cases.”