From 4eb227b62b9740516cd92b4d95e666954a7d0ea0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 21:10:45 +0000 Subject: [PATCH 1/2] Initial plan From 0709d558f784b647d73e697b7c36e5bdbabd44f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 21:11:22 +0000 Subject: [PATCH 2/2] Fix age range mismatch in create_cachar_inspired_data() test helper Co-authored-by: jackmurphy2351 <120122776+jackmurphy2351@users.noreply.github.com> --- tests/testthat/test-calc-risk-diff.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-calc-risk-diff.R b/tests/testthat/test-calc-risk-diff.R index b3cfe84..5d87f7a 100644 --- a/tests/testthat/test-calc-risk-diff.R +++ b/tests/testthat/test-calc-risk-diff.R @@ -40,7 +40,7 @@ create_cachar_inspired_data <- function(n = 1500, seed = 2025) { ) %>% dplyr::mutate( # Age structure matching Northeast India patterns - age = sample(18:70, n, replace = TRUE, + age = sample(18:90, n, replace = TRUE, prob = c(rep(0.8, 22), rep(1.2, 30), rep(0.6, 21))), # Sex distribution (male predominant in screening studies)