Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bio-clinical-biostatistics-missing-data

БесплатноЗапускает вложенные скриптыНе проверен

Implements missing-data sensitivity analyses for confirmatory clinical trials including MMRM under MAR (with Kenward-Roger correction), reference-based…

gabrielmoreiraот gabrielmoreira★ 23 звезды на GitHub

Об этом скилле

Version Compatibility

Reference examples tested with: R mmrm 0.3+ (Roche/openpharma), R rbmi 1.5+ (Roche/Bayer via insightsengineering), R mice 3.16+, R mitools 2.4+, Python sklearn 1.4+, statsmodels 0.14+.

Before using code patterns, verify installed versions match. If versions differ:

  • R: packageVersion('<pkg>') then ?function_name
  • Python: pip show <package> then help(module.function)

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

Missing Data Sensitivity for Confirmatory Trials

"Handle missing data in a confirmatory clinical trial" -> Pre-specify the missing-data assumption per ICH E9(R1); execute the primary analysis under the chosen assumption (typically MAR via MMRM or MI); run clinically-articulable MNAR sensitivity analyses (reference-based MI per Carpenter-Roger 2013); report the tipping delta that would overturn the conclusion (Permutt 2016).

The Foundation -- NRC 2010 and ICH E9(R1)

The U.S. National Research Council Panel ("The Prevention and Treatment of Missing Data in Clinical Trials," 2010; chaired by Roderick Little; Little, D'Agostino, Cohen et al 2012 NEJM 367:1355): 18 recommendations grouped as prevention (Recs 1-7), analysis (Recs 8-14), sensitivity (Recs 15-18).

Key recommendations:

  • Rec 10/11: explicitly REJECT LOCF and BOCF as default; they are biased even under MCAR
  • Rec 13: endorses WGEE (weighted GEE) for marginal estimands
  • Rec 15: "examining sensitivity to assumptions about the missing-data mechanism should be a mandatory component of reporting"

ICH E9(R1) (2019) forces the ordering: define the estimand (5 attributes including ICE strategy) BEFORE choosing the analysis. The missing-data strategy maps to the ICE handling strategy:

  • Treatment policy ICE strategy + missing post-ICE data -> reference-based MI (J2R typical)
  • Hypothetical ICE strategy -> MMRM under MAR; g-computation
  • Composite ICE strategy -> ICE becomes part of endpoint; no missing-data problem for that subject
  • While-on-treatment ICE strategy -> pre-ICE values only; censored at ICE
  • Principal stratum -> latent stratum, requires Bayesian or sensitivity over unverifiable assumptions

Missing-Data Mechanisms

Mechanism Definition Testable? Valid method
MCAR Independent of all data Partially (Little's 1988 test) Complete-case unbiased but loses power
MAR Depends on observed data only NOT testable MMRM under MAR; MI under MAR
MNAR Depends on unobserved values NOT testable Sensitivity analysis (J2R, CR, CIR, tipping point, pattern-mixture, selection model)

Critical philosophical point: MAR vs MNAR cannot be distinguished from observed data alone. This is fundamental. Pre-specify the assumed mechanism in the SAP based on clinical reasoning, not the data.

Algorithmic Taxonomy

Method Estimand strategy Identification Variance Strength Fails when
Complete-case analysis MAR or MCAR MAR Standard Simple; valid under MCAR Loses power; biased under MAR with informative covariates
LOCF Implicit MNAR Assumes flat post-ICE trajectory Standard Historically used Biased even under MCAR (Mallinckrodt 2008); NRC 2010 rejects
MMRM with UN+KR Hypothetical via MAR MAR Kenward-Roger SE FDA-favoured continuous longitudinal High differential dropout makes MAR implausible
Multiple imputation (MAR) Hypothetical via MAR MAR Rubin's rules Flexible; handles arbitrary patterns sample_posterior must be enabled; only works with default estimator in sklearn
Reference-based MI (J2R, CR, CIR, LMCF) Treatment policy / MNAR sensitivity Clinical narrative (e.g., "after withdrawal patient resembles placebo") Cro 2019 information-anchored vs Wolbers 2022 frequentist (active debate) FDA-acceptable; clinician-interpretable Variance choice contested; Rubin over-conservative, jackknife may inflate Type-I
Tipping-point delta-adjustment MNAR sensitivity Pre-specified delta function Standard Direct regulatory question: "how bad would missing data have to be?" Delta interpretation depends on scale
Pattern-mixture with CCMV Pattern-mixture MNAR "Missing pattern resembles completer pattern" Multiple imputation Identifies missing cells via restriction CCMV may be implausible if completers are atypical
Pattern-mixture with NCMV Pattern-mixture MNAR "Missing pattern resembles neighbouring pattern" MI Less extreme assumption than CCMV Choice of "neighbouring" is ambiguous
Pattern-mixture with ACMV Pattern-mixture MNAR (equivalent to MAR) "Missing pattern resembles available cases" MI Equivalent to MAR (Molenberghs 1998) Reduces to standard MAR ana
Полный SKILL.md на GitHub

Установить bio-clinical-biostatistics-missing-data в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/missing_data_sensitivity.pyusage-guide.md

FAQ

Что делает скилл bio-clinical-biostatistics-missing-data?

Implements missing-data sensitivity analyses for confirmatory clinical trials including MMRM under MAR (with Kenward-Roger correction), reference-based multiple imputation (J2R, CR, CIR, LMCF per Carpenter-Roger 2013), Permutt delta-adjustment / tipping-point analysis, pattern-mixture identifying restrictions (CCMV, NCMV, ACMV), and the Cro vs Bartlett variance debate. Use when handling missing primary or secondary endpoint data in regulatory submissions following NRC 2010 and ICH E9(R1).

Как установить скилл bio-clinical-biostatistics-missing-data?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-clinical-biostatistics-missing-data запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bio-clinical-biostatistics-missing-data с