add content covering the Cook's distance diagnostic plot#858
add content covering the Cook's distance diagnostic plot#858github-actions[bot] wants to merge 13 commits into
Conversation
New subfile _sec_linreg_diag_cooks_distance.qmd covers: - Definition of Cook's distance (deleted-observation form) - Equivalent closed-form via standardized residuals and leverage - Cook's distance bar plot (autoplot which=4) - Rule of thumb thresholds (D_i > 1 or D_i > 4/n) - Cross-reference to residuals-vs-leverage contours - Exercise verifying the equivalence formula numerically Also: - Added @cook1977detection bibliography entry (Technometrics 1977) - Added Cook's distance section to _sec_linreg_diagnostics.qmd - Updated residuals-vs-leverage notes to mention Cook's distance contours Pre-existing render failure (libnode.so.109 missing for ggdag/V8) at chunk fig-dag-heat-deaths is unrelated to these changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @d-morrison's task in 3m 18s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryThe PR adds a new Issues1. Slide breaks use
|
|
Claude finished @d-morrison's task in 2m 50s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryThe PR adds Issues1. All 8 slide breaks use
|
|
@claude address review comments and update branch from main |
|
👀 Picked up by workflow run #27028683136. R/Quarto/renv setup runs first (~3-5 min); Claude itself responds after that. |
|
@claude review |
|
👀 Picked up by workflow run #27031654573. R/Quarto/renv setup runs first (~3-5 min); Claude itself responds after that. |
|
Claude Code CLI (local session) is working on this — paws off until I'm done. Fixing the |
…0602-024617 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Three closing div fences in _sec_linreg_diag_conditional_resid.qmd had been corrupted from ::: to :;: (closing the notes block at line 26 and the two figure divs at lines 35 and 89) — a side effect of an earlier find/replace in that file. Restore them to ::: so the divs balance and the figures render. Also attach a verified citation to the Di > 1 rule of thumb in the Cook's distance section: Dobson & Barnett §6.3 states "values of Cook's distance greater than unity" [@dobson4e, §6.3]; the line previously had no citation (the existing @cook1977detection was only on the 4/n rule). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
|
Claude finished @d-morrison's task in 3m 14s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryAll six issues flagged in the previous two reviews have been fixed. The PR is nearly ready to merge — one substantive citation concern and one minor structural note remain. Fixes Confirmed
Remaining Issues1. Citation accuracy:
|
|
@claude address review comments |
|
👀 Picked up by workflow run #27047788260. R/Quarto/renv setup runs first (~3-5 min); Claude itself responds after that. |
|
Claude finished @d-morrison's task in 2m 52s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryAll six issues from prior reviews are confirmed fixed. Two issues remain open from the most recent review: one citation accuracy concern and one structural convention from CLAUDE.md. Confirmed Fixed
Remaining Issues1. Citation accuracy:
|
…tation for 4/n threshold Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The 4/n (more precisely 4/(n-k-1)) influence cutoff originates with Bollen & Jackman (1990), "Regression diagnostics," not Cook (1977) — confirming the earlier removal of the @cook1977detection citation. Add the bib entry and cite it so the threshold is no longer an uncited factual claim (the Di > 1 rule remains cited to @dobson4e, §6.3). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
|
Claude finished @d-morrison's task in 3m 50s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryAll six issues from prior reviews are confirmed fixed, including the citation-accuracy problem for Confirmed Fixed
Issue
|
The example computed $D_i$ from $\stdresid_i$ and $h_{ii}$ but
appeared BEFORE the closed-form expression that motivates that
computation. Reordered so the formula is introduced first, then the
example cites it explicitly via @eq-cooks-distance-formula.
|
Claude finished @d-morrison's task in 3m 9s —— View job Code Review: PR #858 — Cook's Distance Diagnostic Plot
SummaryAll issues from previous review rounds have been resolved. The PR is ready to merge. Confirmed Fixed
Good
|
Built to branch |
Draft PR opened by
@claudeto address #857.Triggered by workflow run.
Addresses #857.