Repository navigation
Conversation
This branch has not been deployed
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.
For an ordinary linear model,
tidy.lm()already has the coefficient estimates and standard errors fromsummary.lm(). Computing the two Student t endpoints there saves a second model summary insideconfint.lm()and a join. Subclasses continue to dispatch to their own interval methods. Models with zero residual degrees of freedom or duplicate term names keep the existing path.On an Apple Silicon Mac, I timed each installed revision in a fresh R process, alternating execution order across seven blocks. Each block timed 40 calls after a warm-up. The entries are median milliseconds per public call.
A minimal timing example, run in each installed revision:
The added regression test compares both exponentiated endpoints and coefficient labels to
stats::confint()on a weighted, rank-deficient fit. Separately, I compared endpoints to a direct weighted least-squares calculation across six fits, four confidence levels, and both exponentiation settings (absolute error below 2e-12). A subclass with its own confidence interval method retained its custom endpoints. On an essentially perfect fit, removing the second summary also removes its duplicate warning.R CMD check --no-manualfinished with status OK on both revisions. The development test suite withNOT_CRAN=truepassed locally on the proposed revision as well.