Skip to content

Fix "Risk Differerence" typo and add per-arm follow-up counts to diagnostics#159

Merged
remlapmot merged 4 commits into
mainfrom
devel-2026-05-22
May 27, 2026
Merged

Fix "Risk Differerence" typo and add per-arm follow-up counts to diagnostics#159
remlapmot merged 4 commits into
mainfrom
devel-2026-05-22

Conversation

@remlapmot

@remlapmot remlapmot commented May 22, 2026

Copy link
Copy Markdown
Collaborator

I duffed a typo in the risk.times output.

And Paul had a great idea to report follow-up per treatment arm in the @info slot. This is done as info$followup.unique and info$followup.nonunique (per subgroup, mirroring info$outcome.unique / info$outcome.nonunique). Which is very helpful info. Looks like the following in our short course practical.

img-cff146ee-9a75-4969-9bfc-54b21a1e6811

@remlapmot remlapmot requested a review from ryan-odea May 22, 2026 06:20
Report follow-up per treatment arm on every SEQuential() result as info$followup.unique and info$followup.nonunique, mirroring info$outcome.unique / info$outcome.nonunique. Both are per-subgroup lists grouped by baseline treatment over expanded-data rows with an observed (non-NA) outcome - the person-time the outcome model is fit on - so under method = "censoring" the censoring row is excluded. The non-unique table counts follow-up intervals (so the non-unique outcome counts divided by these give per-arm event rates); the unique table counts the distinct subjects contributing follow-up to each arm (a subject who appears in both arms is counted in each). Both are shown in the printed diagnostic tables.
@remlapmot remlapmot changed the title Fix "Risk Differerence" typo Fix "Risk Differerence" typo and add per-arm follow-up counts to diagnostics May 22, 2026
@remlapmot remlapmot merged commit 22e91cf into main May 27, 2026
7 checks passed
@remlapmot remlapmot deleted the devel-2026-05-22 branch May 27, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants