Permutation Logistic Regression Calculator

Test binary relationships using robust shuffled resampling methods. Review fit, odds, confidence, and predictions easily. Clear outputs help compare effects across complex real datasets.

Enter Dataset and Settings

Use a header name or a 1-based column number.
Use comma-separated names or numbers. Up to three predictors.
Provide one value for each predictor to generate a probability.
Outcome must be binary and coded as 0 or 1. Predictors must be numeric.

Example Data Table

Outcome StudyHours PrepScore Attendance
188292
177688
034560
045266
199195
055870

You can replace this with your own binary outcome dataset. Keep the outcome coded as 0 or 1.

Formula Used

Logistic model: logit(p) = β0 + β1x1 + β2x2 + ... + βkxk, where p = 1 / (1 + e^(-logit(p))).

Odds ratio: OR = eβ. A one-unit increase in a predictor multiplies the odds by its odds ratio, holding other predictors fixed.

Permutation test: The calculator repeatedly shuffles the binary outcome, refits the model, and measures how often shuffled coefficients or model fit are at least as extreme as the observed result.

Fit statistics: AIC = 2k - 2LL, BIC = ln(n)k - 2LL, and McFadden R² = 1 - (LL model / LL null).

How to Use This Calculator

  1. Paste your dataset into the text area using comma, semicolon, or tab separation.
  2. Identify the binary outcome column and up to three numeric predictor columns.
  3. Set the number of permutation runs, iteration limit, and convergence tolerance.
  4. Optionally enter predictor values to generate a predicted probability.
  5. Press Run Calculator to show results above the form.
  6. Review coefficients, odds ratios, confidence intervals, and permutation p-values.
  7. Use the CSV and PDF buttons to export the computed output.

Frequently Asked Questions

1. What does permutation logistic regression measure?

It estimates a binary logistic model and validates effects by shuffling outcome labels many times. This gives empirical p-values that are often more robust than relying only on asymptotic assumptions.

2. Why use permutation p-values?

Permutation p-values compare observed coefficients against shuffled datasets. They help when sample sizes are moderate, distributions are unusual, or classical significance tests may be overly optimistic.

3. How many predictors should I include?

This calculator supports up to three predictors for stability and speed. With small samples, fewer predictors usually give more trustworthy estimates and smoother convergence.

4. What do odds ratios mean here?

An odds ratio shows how the odds of outcome equals one change for a one-unit increase in a predictor, while other included predictors stay fixed.

5. What if my model does not converge?

Try fewer predictors, more rows, a cleaner dataset, or scaled variables. Separation or nearly perfect prediction can make logistic models unstable and inflate coefficients.

6. Can I use categorical predictors?

Only after converting categories into numeric dummy variables before pasting data. Each resulting indicator column can then be used like any other predictor.

7. What does the global permutation p-value show?

It compares observed model log-likelihood against models fit after shuffled outcomes. Smaller values suggest the overall model captures a real signal beyond random label assignments.

Related Calculators

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.