Skip to content

respect marginality in response surface stepwise selection#487

Open
JohnnyDoorn wants to merge 3 commits into
jasp-stats:masterfrom
JohnnyDoorn:stepwise-marginality
Open

respect marginality in response surface stepwise selection#487
JohnnyDoorn wants to merge 3 commits into
jasp-stats:masterfrom
JohnnyDoorn:stepwise-marginality

Conversation

@JohnnyDoorn

Copy link
Copy Markdown
Contributor

step() treats I(x^2) as unrelated to x, so it could keep a squared term without its main effect. Re-add missing main effects and refit.
Fix https://github.com/jasp-stats/INTERNAL-jasp/issues/3265
Fix https://github.com/jasp-stats/INTERNAL-jasp/issues/3218

step() treats I(x^2) as unrelated to x, so it could keep a squared term
without its main effect. Re-add missing main effects and refit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

👋 Friendly reminder: It looks like NEWS.md wasn't updated in this Pull Request.

If your changes include bug fixes, new features, or UI tweaks, please consider adding a quick note to the # jaspYourModule (development version) section so our users know about your awesome work! (If this is just a minor typo fix, feel free to ignore this message.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.47826% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.22%. Comparing base (8c33634) to head (84530cc).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
R/doeAnalysis.R 43.47% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #487      +/-   ##
==========================================
- Coverage   84.96%   84.22%   -0.75%     
==========================================
  Files          18       18              
  Lines       10012    10410     +398     
==========================================
+ Hits         8507     8768     +261     
- Misses       1505     1642     +137     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread R/doeAnalysis.R
Comment thread R/doeAnalysis.R
Comment on lines +22 to +23
.enforceSquaredTermMarginality <- function(model,
data = eval(stats::getCall(model)[["data"]], environment(stats::formula(model)))) {
Comment thread R/doeAnalysis.R
Comment on lines +1650 to +1653
message <- sprintf(ngettext(length(forcedMainEffects),
"The main effect %s was retained to respect marginality (its squared term is in the model).",
"The main effects %s were retained to respect marginality (their squared terms are in the model)."),
paste(forcedMainEffects, collapse=", "))
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants