Skip to content

Expose df in Rubin pooling + support varying d.f.#562

Open
munoztd0 wants to merge 1 commit into
openpharma:mainfrom
munoztd0:junco_rbmi_pool
Open

Expose df in Rubin pooling + support varying d.f.#562
munoztd0 wants to merge 1 commit into
openpharma:mainfrom
munoztd0:junco_rbmi_pool

Conversation

@munoztd0
Copy link
Copy Markdown

@munoztd0 munoztd0 commented Jun 1, 2026

pool_internal.rubin() now appends df to each per-parameter result, making it accessible to downstream callers without re-computing it.

The strict requirement that all per-imputation degrees of freedom be identical is replaced with a median fallback: when d.f. are constant the behaviour is unchanged; when they vary (as occurs with MMRM analysis functions, where each imputed dataset yields slightly different residual d.f.) the median is used as v_com in Rubin's rules rather than throwing an error.

Both changes should low-risk: the constant-d.f. path is unaffected, and the median fallback is the standard pragmatic choice

@munoztd0
Copy link
Copy Markdown
Author

munoztd0 commented Jun 1, 2026

In accord to our previous conservation #560 with @danielinteractive

@munoztd0
Copy link
Copy Markdown
Author

munoztd0 commented Jun 1, 2026

fix johnsonandjohnson/junco#369

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.

1 participant