← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-clinical-biostatistics-trial-reporting / references / usage-guide.md

Trial Reporting - Usage Guide

Overview

Prepares statistical reports for clinical trials following CONSORT 2025 (Hopewell et al Lancet 2025), SPIRIT 2025, ICH E9(R1) Addendum on Estimands (2019), and FDA 2023 Final Guidance "Adjusting for Covariates in RCTs." Covers Table 1 generation, analysis populations (ITT vs FAS vs PP vs Safety), the 5 ICH E9(R1) intercurrent-event strategies, MMRM under MAR with Kenward-Roger via mmrm package, reference-based MI via rbmi (J2R/CR/CIR), Permutt tipping-point sensitivity, and the Cro vs Bartlett information-anchored vs frequentist variance debate.

Prerequisites

pip install tableone statsmodels scikit-learn pandas numpy

R is strongly recommended for confirmatory regulatory work (Python lacks Kenward-Roger):

install.packages(c('mmrm', 'rbmi', 'gMCP', 'rpact', 'gsDesign'))

Quick Start

Tell your AI agent what you want to do: - "Define the ICH E9(R1) estimand for my primary endpoint (5 attributes including ICE strategy)" - "Fit MMRM with Kenward-Roger via the mmrm R package; UN covariance with pre-specified fallback hierarchy" - "Run J2R reference-based MI via rbmi as MNAR sensitivity for treatment-policy estimand; report BOTH Rubin's and CMI+jackknife variance" - "Compute Permutt tipping-point delta that flips primary p > 0.05; report in residual SD units" - "Generate Table 1 with TableOne; pre-specify CONSORT 2025 + SPIRIT 2025 reporting per item 4 (data sharing) + item 21c (missing data) + item 15 (harms)"

Example Prompts

Estimand specification

"My primary endpoint is change in HbA1c at 24 weeks. ICE is treatment discontinuation due to AE. Define the ICH E9(R1) estimand with 5 attributes and choose between treatment policy, hypothetical, composite, while-on-treatment, or principal stratum."

"Cite Olarte Parra 2022 to argue MMRM-MAR IS a causal hypothetical estimator under specific identifying assumptions. Articulate the hypothetical scenario in the SAP."

MMRM with Kenward-Roger

"Implement MMRM in R mmrm package with UN covariance + Kenward-Roger-Linear (matches SAS PROC MIXED bit-for-bit). Pre-specify fallback: UN+KR -> UN+Satterthwaite -> heterogeneous Toeplitz -> AR(1) -> CS."

Reference-based MI

"Apply J2R imputation in rbmi for treatment-discontinuation ICEs in my treatment-policy estimand. Use both Bayesian MI + Rubin's rules (Cro 2019 information-anchored) AND CMI+jackknife (Wolbers 2022 frequentist). Justify discrepancy in CSR."

Tipping-point sensitivity

"Permutt 2016 tipping-point analysis: apply delta only to active-arm imputed values; scan delta from 0 to 20 in units of residual SD. Report the tipping delta that flips primary p > 0.05. Judge clinical plausibility against MCID."

Aducanumab/Aprocitentan-style differential dropout

"My trial has 35% dropout in active arm vs 12% in placebo, predominantly due to AEs. MAR is implausible. Switch from MMRM-MAR primary to treatment-policy with retrieved-dropout MI as primary, J2R as sensitivity (Aprocitentan 2024 precedent)."

Table 1 and analysis populations

"Generate Table 1 with age, sex, race, BMI, baseline severity. Group by ARM. Use SMD (NOT p-values) to assess balance. Distinguish ITT, FAS, PP, Safety populations with explicit pre-specified criteria."

CONSORT 2025 reporting

"Review my analysis against CONSORT 2025 (Hopewell 2025 Lancet 405:1633). Verify items 4 (data/code sharing), 8 (PPI), 15 (harms), 21c (missing data), 24a/24b (TIDieR intervention description)."

"Estimands did NOT make consensus for mandatory CONSORT 2025 inclusion (Box 1 terminology only). Report the estimand per ICH E9(R1) directly."

What the Agent Will Do

  1. Define the ICH E9(R1) estimand with 5 attributes BEFORE choosing analysis method
  2. Examine DS (Disposition) domain to characterise dropout patterns by arm
  3. Choose estimand strategy based on clinical reasoning (treatment policy / hypothetical / composite / WoT / principal stratum)
  4. Generate Table 1 with SMD-based balance assessment
  5. Define ITT, FAS, PP, Safety populations with explicit pre-specified criteria
  6. Execute MMRM-MAR (R mmrm) OR reference-based MI (R rbmi) per pre-specified estimand
  7. Run MNAR sensitivity analyses including Permutt tipping-point in residual SD units
  8. Apply graphical multiplicity (Bretz-Maurer via gMCP) for primary + key secondary
  9. Format reporting per CONSORT 2025 30-item checklist + ICH E9(R1) estimand statement

Tips