1
0
mirror of https://github.com/msberends/AMR.git synced 2026-05-31 13:01:42 +02:00
Files
AMR/R
Claude f5ea4ea4ba Fix parallel WISCA returning all NA; strengthen tests; add sequential hint
Bug: lapply() over a factor yields length-1 factor elements (integer
codes), while for() over a factor yields character strings.  The job
list stored j\$group as a factor integer, but the reassembly loop
compared it with identical(j\$group, g) where g was character -- always
FALSE, so no simulation chunks were ever assembled and coverage stayed
NA throughout.

Fix: convert unique_groups to character before building jobs so both
the job list and the reassembly loop use the same type.

Tests: replaced na.rm = TRUE guards with explicit anyNA() checks so the
test suite would have caught the all-NA result immediately.

Also adds a sequential-mode performance hint (analogous to sir.R
lines 1116-1127) when simulations >= 500 and >= 3 regimens.

https://claude.ai/code/session_01FC43syPbzhGmKgrrVNHjnF
2026-04-30 17:23:31 +00:00
..
2025-04-29 16:15:18 +02:00
2026-04-21 22:11:40 +02:00
2026-04-04 11:51:50 +02:00
2026-03-11 16:07:31 +01:00
2026-03-24 12:44:47 +01:00
2025-04-12 11:46:42 +02:00
2026-03-24 12:44:47 +01:00
2025-04-12 11:46:42 +02:00
2026-03-23 10:38:28 +01:00
2025-06-02 12:11:00 +02:00
2025-04-12 11:46:42 +02:00
2026-04-21 22:11:40 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2026-04-22 08:16:44 +02:00
2026-03-30 10:01:49 +02:00
2026-03-23 10:38:28 +01:00
2025-06-13 16:12:28 +02:00
2026-03-23 10:38:28 +01:00
2026-03-22 20:44:37 +01:00
2025-04-12 11:46:42 +02:00
2026-04-04 11:51:50 +02:00
2025-04-12 11:46:42 +02:00