Repository navigation
CLAUDE.md: check that chapter model fits converge - #1506
Conversation
A non-converging MASS::glm.nb() fit passed one Quarto Publish run with a warning and failed the next with an error, with no content change (#1505). Record the check and the glmmTMB alternative. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FWgYrGaqBPMWkVzew6UErH
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Annotation dispositions for head 80822b7:
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
beam-free (cross-model review) noted glmmTMB fits have no converged flag; name fit$fit$convergence and fit$sdr$pdHess for glmmTMB and fit$converged for glm()/glm.nb(), checked in R. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FWgYrGaqBPMWkVzew6UErH
|
Claude finished review — View run The new commit bb95920 only rewrites the convergence bullet in The bullet now names where each package keeps its convergence record:
The change touches no VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "bb959207335dad9cb33974482c0154f6d02186f0",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "The rewritten CLAUDE.md convergence bullet names fit$converged for glm and glm.nb and fit$fit$convergence plus fit$sdr$pdHess for glmmTMB, which match those packages' actual fields.",
"holistic_assessment": "A docs-only convention clarification with no math, notes content, or build impact; scope is appropriate and the prior clean verdict still stands."
}Reviewed commit: bb95920 |
|
Cross-model review (OpenCode Go,
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
|
Annotation dispositions for head bb95920:
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
|
Cross-model review on the pushed head bb95920 (OpenCode Go
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Requested by Ezra · project thread
This PR adds one bullet to
CLAUDE.mdunder "Quarto". It asks agents to check that every model fit a chapter shows has converged, not only that its chunk ran. That means reading the fitting warnings and the fit's own convergence fields:fit$convergedforglm()/MASS::glm.nb(), andfit$fit$convergence == 0plusfit$sdr$pdHessforglmmTMB(). For a negative binomial fit on small, zero-heavy data, it points toglmmTMB(family = nbinom2).Why:
MASS::glm.nb()on the needle-sharing data never converged. It passed one Quarto Publish run with a warning and failed the next one with an error, with no content change in between. The content fix is in #1505. This instruction change is kept separate, asCLAUDE.mdasks for config changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01FWgYrGaqBPMWkVzew6UErH