CalcWorldHub
Free online calculator · no signup

Grouped binary logistic regression fit calculator

Estimate a one-predictor binomial logistic model from grouped success and trial counts, rather than merely applying known coefficients.

4,000 tools
Grouped binary logistic regression fit calculator — Predictor values, Success counts, Trial counts and calculation method
Grouped binary logistic regression fit calculator: inputs and calculation method.

How to use this calculator

Estimate a one-predictor binomial logistic model from grouped success and trial counts, rather than merely applying known coefficients.

  1. Enter Predictor values, Success counts, Trial counts. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Grouped binary logistic regression fit explained

Enter predictor, success-count, and trial-count vectors in matching group order; the binomial fit weights each group by its number of trials.

Fitted slope0.6536per predictor unit
Fitted slope: 0.6536273 per predictor unit in the worked scenario.

How the calculation works

log[p(x)/(1−p(x))]=β0+β1x; maximize Σ{yiηi−ni·log(1+exp ηi)}.

The fit includes an intercept, centers and scales x internally, and maximizes the grouped binomial log likelihood with safeguarded Newton steps. Coefficients are then returned in the original x units. Model-based information gives the slope standard error.

Set up the calculation

x — Predictor values
Ordered values in the role named above. Match row positions with other lists and use a consistent measurement unit within the same variable. Use comma-separated values in the stated order.
y — Success counts
Integer successes at each predictor value; each must lie between zero and its corresponding trial count. Use comma-separated values in the stated order.
n — Trial counts
Positive integer trials at each predictor value, in the same row order as x and y. Use comma-separated values in the stated order.

Limits of this model

Independent binomial groups with a common logistic response curve. Finite full-rank estimates are required; separation or failed convergence is rejected. No overdispersion correction, penalization, or causal claim is supplied.

Check this example

Predictor values = 0,1,2,3,4,5; Success counts = 2,4,5,9,12,15; Trial counts = 20,20,20,20,20,20.

  • Fitted slope: 0.6536273 per predictor unit
  • Fitted intercept: -2.20252445
  • Odds ratio per unit: 1.92250169
  • Slope standard error: 0.13936512
  • Wald two-sided p-value: 0.00000273

Six predictor levels each have twenty trials. Success counts rise from two to fifteen, allowing the slope to be learned from observations rather than entered as a fixed model parameter.

Reading the outputs

exp(slope) is the odds ratio for one predictor-unit increase. It is not an absolute probability increase or a risk ratio.

Frequently asked questions

How is this different from a logistic prediction tool?

This tool estimates coefficients; a prediction tool applies coefficients already known.

Can I enter a proportion as successes?

No. Supply integer successes and integer trials.

Why might perfectly separated groups fail?

An unpenalized logistic slope may have no finite maximum-likelihood estimate.

How do I use the Grouped binary logistic regression fit calculator?

Enter Predictor values, Success counts, Trial counts. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Grouped binary logistic regression fit?

Predictor values = 0,1,2,3,4,5; Success counts = 2,4,5,9,12,15; Trial counts = 20,20,20,20,20,20. Fitted slope: 0.6536273 per predictor unit Fitted intercept: -2.20252445 Odds ratio per unit: 1.92250169 Slope standard error: 0.13936512 Wald two-sided p-value: 0.00000273 Six predictor levels each have twenty trials. Success counts rise from two to fifteen, allowing the slope to be learned from observations rather than entered as a fixed model parameter.