Sample size em edits - #369
Conversation
--author "Kwan Ho Lee" <ksjlee@ucdavis.edu>
Codecov Report✅ All modified and coverable lines are covered by tests. |
There was a problem hiding this comment.
Pull request overview
This PR adds a new data-raw/ script to run parallelized seroincidence simulations for exploring sample-size behavior, and updates package metadata to include additional optional dependencies used by supporting workflows/scripts.
Changes:
- Add
data-raw/sample-size.Rto simulate cross-sectional serology data and summarize CI coverage across scenarios. - Add
furrrandsvglitetoSuggestsinDESCRIPTION(for optional parallel mapping and SVG-based visual regression testing support).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| DESCRIPTION | Adds optional dependencies (furrr, svglite) needed by scripts/testing tools. |
| data-raw/sample-size.R | New simulation + summarization script for evaluating sample size / CI coverage under different incidence rates. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Replace deprecated load_curve_params/sim.cs/est.incidence with load_sr_params/sim_pop_data/est_seroincidence (and sr_params arg) - Rename objects with dots to snake_case (object_name_linter) - Fix mislabeled lambda=0.01 scenario and add per-call seeds - Use seq_along(); declare future in Suggests; move library(future) to top
|
Addressed the review findings in
This is an internal maintainer script in @claude review Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
|
👀 Picked up by workflow run #26910326827. R setup runs first; Claude itself responds after that. |
|
@claude review Generated by Claude Code |
|
👀 Picked up by workflow run #26911728637. R setup runs first; Claude itself responds after that. |
|
Working on this — paws off until I'm done. Generated by Claude Code |
# Conflicts: # DESCRIPTION
- Use seq_len(n_sim) instead of 1:n_sim to avoid the reverse-sequence bug when n_sim = 0. - Stop discarding the lambda=0.1/0.01 coverage results; assign and print all four scenarios consistently instead of relying on paste() on a data frame, which produced an unreadable message.
This comment has been minimized.
This comment has been minimized.
ARD summaryThis PR adds a maintainer-only simulation script (
Additionally, since this PR was opened in Feb 2025 and
Pushed as commits CI status: still running/pending as of last check — not yet confirmed fully green. Will need a follow-up check before this is mergeable. Generated by Claude Code |
|
Done for now — unclaimed. Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
|
Working on this (resolving the conflict with Generated by Claude Code |
# Conflicts: # DESCRIPTION
|
Merged
Review verdict was already clean. Leaving the merge decision to a human. Generated by Claude Code |
|
Heads-up: after the merge + version bump I pushed, Generated by Claude Code |
Code Review (confirming pass)
SummaryThe only changes since the 2026-06-30 review are a merge of
That prior verdict — all critical/blocking findings resolved, script in good shape — still stands, and the remaining nits from that round are now also closed out. Independently re-verified for this pass (not just trusting changelog):
CI status: All required checks are green — No new issues found. VerdictReady for merge |
|
Claude finished review — View run Posted a confirming review on PR #369: comment. Summary: Since the last review round (2026-06-30), the only changes are a Verdict: Ready for merge |
|
📖 https://UCD-SERG.github.io/serocalculator/preview/pr369/ |
Thank you for taking the time to submit a pull request!
To maximize the chances of acceptance:
Fixes #issue-number(if relevant).-.testthat).For more information see Contributing.