Repository navigation
New parameter spreadIntercept: a spread formula with an intercept - #58
Merged
Merged
Conversation
spreadFormula() builds "~ 1 + RHS" with spreadIntercept = TRUE and the unchanged "~ 0 + RHS" by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
eliotmcintire
added a commit
that referenced
this pull request
Oct 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends-on: PredictiveEcology/fireSenseUtils#131
fireSense_dataPrepFit.R:942built the spread formula aspaste0("~ 0 + ", RHS), so it never had an intercept and the rescaled covariates' coefficients set the level of the linear predictor. The new parameterspreadIntercept(logical, defaultFALSE) builds~ 1 + RHSthrough a newspreadFormula(); fireSense_spreadFit (PredictiveEcology/fireSense_spreadFit#65) fits the intercept with centred covariates and fireSense_spreadPredict (PredictiveEcology/fireSense_spreadPredict#25) predicts with it.The default is off:
spreadFormula(RHS)returns the same string as before (tested byte for byte). Newtest-spreadIntercept.R(3 tests) fails on the base module and passes here; full module suite 85 tests, 0 failed, 1 skipped (base 82, 0 failed, 1 skipped), run against fireSenseUtils#131. No reqdPkgs floor yet: the fireSenseUtils version does not exist on development until #131 merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv