-
Notifications
You must be signed in to change notification settings - Fork 19
[Analyse Design] Stepwise analysis #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
JohnnyDoorn
commented
Sep 22, 2025
- Uses step function based on AIC, forward and backward
- As requested here
- Rewrote the formula table a bit so that it plays nice with intercept-only models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements stepwise model selection for DOE analysis based on AIC criteria, allowing users to choose between "Enter" (simultaneous), "Backward" (removal), and "Forward" (addition) methods. It also refactors the formula generation to handle intercept-only models more robustly.
Key changes:
- Added stepwise analysis method selection dropdown with three options (Enter, Backward, Forward)
- Implemented stepwise regression using AIC-based step function with detailed tracking of model progression
- Refactored formula table generation to use a more concise approach and handle edge cases better
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| inst/qml/doeAnalysis.qml | Adds UI dropdown for stepwise method selection |
| R/doeAnalysis.R | Implements stepwise regression logic, results table, and refactors formula generation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@JTPetter Will you have time to review this? Or should I tag someone else? |
|
@JohnnyDoorn Yes, but probably not before end of the month or a bit later. So if you want it more urgent it's probably better to tag someone else. |
|
@JohnnyDoorn I had a first look at this. Looks good to me, except for a few things:
|

