Fix anova.drc() documentation to match actual behavior#178
Merged
Conversation
…onse#42) The old documentation incorrectly claimed that passing a single model to anova() produces a lack-of-fit test. In reality, the code raises an error directing users to modelFit(). Updated the roxygen2 docs, man page, and pkgdown reference to accurately describe the two-model comparison behavior and redirect single-model users to modelFit(). Agent-Logs-Url: https://github.com/hreinwald/drc/sessions/01a236a3-cca0-436a-b0ec-0030ecef7b7c Co-authored-by: hreinwald <115988583+hreinwald@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix documentation for anova.drc() function
Fix anova.drc() documentation to match actual behavior
Mar 27, 2026
hreinwald
approved these changes
Mar 27, 2026
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.
anova.drc()docs claimed passing a single model produces a lack-of-fit test. The code actually callsstop("Use the function modelFit()"). Users hit this error with no prior warning from the documentation.Changes
@description/@details: Removed false claim about single-model lack-of-fit support. Now states two models are required and directs tomodelFit()for single-model assessment.@param ...: Changed from generic "additional arguments" to explicitly document that a seconddrcobject is expected.@param test: Fixed incorrect"od"reference; now documents actual defaults ("F"for continuous,"Chisq"for binomial).@return: Expanded to describe returned structure (classanovainheritingdata.frame, column semantics).@seealso: Added cross-references tomodelFit(),drm(),logLik.drc(),summary.drc().@examples: AddedmodelFit()usage example for discoverability.man/anova.drc.Rdanddocs/reference/anova.drc.mdto match.No behavioral changes — documentation only.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.