Stepwise regression builds a model by automatically adding or removing predictors based on significance (forward, backward, or bidirectional). It is seductive because it seems to let the data choose the important predictors. However, stepwise selection introduces several problems: biased coefficients, inflated p-values, overfitting, and inconsistency across samples. Many peer reviewers and statisticians reject stepwise models without further justification. This guide covers what to report if you use stepwise regression and, more importantly, what to do instead.
Why stepwise regression is problematic
Selection bias. Predictors enter the model only if they cross a p threshold (usually p < .05), so selected coefficients are biased estimates of true population values. The model is built from winners of a statistical tournament, and winners are often lucky.
Inflated p-values. Reported p-values assume the model was specified in advance, not chosen post hoc. The real Type I error rate is higher than the nominal 5%, because the same data chose the predictors and then tested them.
Overfitting and inconsistency. The model fits the sample very well but generalizes poorly. Run the same stepwise procedure on a random subset and you may get a different model. Selected predictors are unstable across resamples.
Multiple testing. Each step tests many predictors. Total false positive rate rises unless you use a very stringent p threshold, which most analyses do not.
When you might use stepwise (rarely)
Stepwise is acceptable for two purposes: (1) Pure exploration when you have many predictors, no theory guides selection, and your goal is hypothesis generation for future testing. Even then, validate on independent data. (2) Screening when you want a quick ranking of predictors by correlation to feed into theory-based selection, not as a final model.
Do not use stepwise if your goal is a replicable or publishable model.
The APA 7 format template
[Outcome] was predicted from [k] candidate variables using [forward / backward / bidirectional] stepwise regression (p-to-enter = [.05], p-to-remove = [.10]; N = [N]). [m] predictors were retained: [list]. The final model explained X% of the variance, F([df1], [df2]) = X.XX, p = [.XXX], R² = .XX, adjusted R² = .XX. [Predictor], b = X.XX, 95% CI [X.XX, X.XX], β = .XX, p = [.XXX]. Because predictors were selected from the same data, these p values are biased and are not valid Type I error rates.
Want to see it written from data? Run this test on sample data in KyroStat: free, no file needed, and it does not use your free tests.
If you use stepwise regression, what to report
If a reviewer requires stepwise regression, report: (1) Selection method (forward, backward, or bidirectional) and the p threshold for entry and exit. (2) Predictors at each step, showing what entered or exited and when it crossed the threshold. (3) Final model coefficients: unstandardized b and standardized β, standard errors, t, p, and 95% CI for each predictor. (4) Model fit: R², adjusted R², F(df1, df2), p. (5) Critical caveat: add "These p-values are biased estimates and do not represent the true Type I error rate. The model was selected post hoc; use caution when interpreting statistical significance."
A worked example
Illustration (N = 60 students, 10 candidate predictors). Outcome: exam score. Simulated data were generated with coefficients: b₁ = 0.5, b₂ = 0.4, b₃ = −0.3, b₄ = 0.6, plus noise.
Forward stepwise result (p < .05 threshold):
| Step | Predictor added | p | R² | Adjusted R² |
|---|---|---|---|---|
| 1 | X2 (correlation .36) | .005 | .13 | .11 |
| 2 | X1 (correlation .34) | .005 | .24 | .22 |
| 3 | X4 (correlation .33) | .015 | .32 | .28 |
| 4 | X3 (correlation −.23) | .023 | .38 | .34 |
| Stop | No predictor meets p < .05 |
Final model:
| Predictor | b | β | SE | t | p | 95% CI |
|---|---|---|---|---|---|---|
| Constant | 0.11 | 0.14 | 0.78 | .441 | [−0.18, 0.40] | |
| X2 | 0.38 | .30 | 0.14 | 2.81 | .007 | [0.11, 0.66] |
| X1 | 0.44 | .36 | 0.13 | 3.33 | .002 | [0.17, 0.70] |
| X4 | 0.38 | .29 | 0.14 | 2.68 | .010 | [0.10, 0.66] |
| X3 | −0.37 | −.25 | 0.16 | −2.34 | .023 | [−0.68, −0.05] |
F(4, 55) = 8.47, p < .001, R² = .38, Adj R² = .34.
Written up in APA 7:
Exam scores were predicted from 10 candidate variables using forward stepwise regression (p-to-enter = .05; N = 60). Four predictors entered the model: X2 (p = .005), X1 (p = .005), X4 (p = .015), and X3 (p = .023). The final model accounted for 38% of variance, F(4, 55) = 8.47, p < .001, R² = .38, adjusted R² = .34. The coefficients were: X2, b = 0.38, 95% CI [0.11, 0.66], β = .30; X1, b = 0.44, 95% CI [0.17, 0.70], β = .36; X4, b = 0.38, 95% CI [0.10, 0.66], β = .29; X3, b = −0.37, 95% CI [−0.68, −0.05], β = −.25. Because predictors were selected from the same data, these p values are biased and do not represent the true Type I error rate.
What to do instead of stepwise regression
Theory-based selection (best). Decide in advance which predictors to test based on prior research. Run one model with all selected predictors and report all results, significant or not.
Full model. Include all candidate predictors and state which were pre-specified and which exploratory. Report all coefficients so readers judge the results.
Regularized regression. LASSO, ridge, or elastic net shrink coefficients and reduce overfitting. They handle many predictors, produce stable models, and require cross-validation to select the regularization strength.
Cross-validation. Split data into training (70%) and test (30%) sets. Fit on training data, predict on test data, and report both R² values. Large differences indicate overfitting.
Why reviewers are skeptical of stepwise
Statisticians and experienced reviewers recognize that stepwise models:
- Capitalize on chance (high false positive rate).
- Generalize poorly to new data.
- Produce inflated effect sizes.
- Lack a principled justification (why p < .05 and not p < .10?).
Leading statisticians recommend against stepwise regression. Harrell (2015, Regression Modeling Strategies, 2nd ed., Springer) and Whittingham et al. (2006, Journal of Animal Ecology, 75, 1182–1189) each document its biases. If your discipline requires stepwise, explain why and validate your model on independent data.
Mistakes reviewers catch
- Stepwise without disclosure. Always state that predictors were selected automatically; reviewers assume in-advance specification unless told otherwise.
- Inflated p-values. Report all predictors at each step so readers see the full selection process. Add: "These p-values reflect stepwise selection and do not represent unconditional Type I error rates."
- No alternative model. Compare stepwise to a theory-based model if possible. Show both R² values and the cross-validated prediction error.
- Too many candidates. With p / N > 0.1 (more than one predictor per 10 cases), selection bias is severe. Use theory-based selection instead.
- No validation. Always use cross-validation or independent test data to estimate true generalization error.
Stepwise regression in SPSS and R
SPSS: Analyze > Regression > Linear. Under Method, choose Forward, Backward, or Stepwise. Set the entry and removal p values under Options (defaults .05 and .10).
R: step() selects by AIC, not p values, and forward selection needs a scope: step(lm(y ~ 1, data = d), scope = ~ x1 + x2 + x3, direction = "forward"). For p-based selection, use olsrr::ols_step_forward_p(), ols_step_backward_p() or ols_step_both_p().
Let KyroStat do the full model for you
KyroStat runs multiple linear regression on your selected predictors, computes standardized and unstandardized coefficients with 95% CIs, model fit, and diagnostics. Upload your data, specify your predictors in advance, and get an honest analysis in seconds.
Frequently asked questions
Is there any situation where stepwise regression is acceptable? In pure exploration, yes: you have many variables, no theory, and your goal is to generate hypotheses for future testing. But you must validate the model on new data or use cross-validation to estimate true generalization error.
What p-threshold should I use for entry/exit? Common choices are p < .05 and p < .10. Lower thresholds (p < .01) make the model more conservative but less comprehensive. The choice is arbitrary and should be pre-specified. Avoid "looking" for the threshold that gives your desired result.
Can I use stepwise on small samples? No, unless very few candidate predictors. With N = 60 and 10 candidates (p / N = 0.17), selection bias and overfitting are severe. The worked example above is for illustration only; use theory-based selection with far fewer candidates.
What about LASSO and other regularized regression? LASSO (least absolute shrinkage and selection operator) is an alternative that shrinks small coefficients to zero, performing selection and regularization simultaneously. It is more principled than stepwise, produces more stable models, and is increasingly preferred. Use cross-validation to select the regularization strength.
How do I validate a stepwise model? Split your data: fit stepwise on the training set (60-80%), then predict on the test set (20-40%). Compare R² between training and test. Large differences indicate overfitting. If you lack data for splitting, use k-fold cross-validation.
Can I use stepwise with categorical predictors? Yes, but code categorical variables as dummy (0/1) variables. Each dummy enters or exits independently, which can be uninformative. Better: fit all level dummies for a categorical predictor together, using block entry in hierarchical regression.
Related guides
- How to report linear regression in APA 7: theory-based full model reporting.
- How to report multiple regression in APA 7: all predictors, all results.
- How to report hierarchical regression in APA 7: planned entry of predictor blocks.
- How to report Bonferroni correction in APA 7: controlling multiple testing.
- Which statistical test should I use?: picking the right analysis.