Figure Library / Learning paths
Model-based comparison · Synthetic teaching data
Baseline-adjusted domain contrasts
What is the fitted between-arm Week-12 difference after adjusting for baseline within complete cases?
Adds an actual adjusted between-arm coefficient and independent R lm / statsmodels OLS verification, supplementing descriptive within-arm domain intervals.
Explore the executed results
Selection switches exact precomputed results. It changes the figure, denominators, table, summary and current-selection downloads together. No analysis runs in this browser.
Python · All participants · 5 computed rows. Review population counts and exact values in the table below.
Image unavailable. Use the numerical table and downloads below.
Values behind this selection
The table scrolls within this panel. All computed rows are included in the current-selection CSV and JSON.
Display rounded to three decimals. Downloaded CSV/JSON retains analysis precision. “Unavailable” is not zero.
| Population | Contrast | Symptom domain | Complete pairs n | Scheduled roster N | Missing n | Reference complete cases | Investigational complete cases | Adjusted contrast (points) | Model SE (points) | 95% CI lower | 95% CI upper | Residual df | Model status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| All | Investigational - Reference | Fatigue | 34 | 36 | 2 | 17 | 17 | -9.898 | 2.025 | -14.028 | -5.767 | 31 | Estimable |
| All | Investigational - Reference | Pain | 34 | 36 | 2 | 17 | 17 | -6.756 | 2.156 | -11.154 | -2.359 | 31 | Estimable |
| All | Investigational - Reference | Sleep | 34 | 36 | 2 | 17 | 17 | -10.277 | 1.754 | -13.854 | -6.700 | 31 | Estimable |
| All | Investigational - Reference | Appetite | 34 | 36 | 2 | 17 | 17 | -12.052 | 1.847 | -15.818 | -8.286 | 31 | Estimable |
| All | Investigational - Reference | Mobility | 34 | 36 | 2 | 17 | 17 | -13.972 | 1.366 | -16.757 | -11.187 | 31 | Estimable |
Why this figure, and what it estimates
An explicit treatment contrast answers a different question from two separate arm means. Aligned pointwise intervals show model-based precision without relying on overlap of within-arm intervals.
Analysis contract
For each domain and All/F/M stratum fit Week12 = intercept + Investigational indicator + centered baseline using complete pairs. The treatment coefficient is Investigational minus Reference. Classical OLS standard errors and pointwise 95% t intervals use residual df n minus 3. Require at least two complete cases per arm and a full-rank design with condition number at most 1e6.
Assigned fictional arms; baseline = scheduled Week 0. No visit windows or treatment switching. Subjects are independent; domain scores are invented 0–100 points. Missing outcomes stay missing; missing scheduled rows are rejected.
Full input, units, missingness, interval, rounding and tolerance specification
Do not overinterpret
Complete-case selection is not a missing-data correction. Common baseline slope, linearity, independent observations and homoscedastic approximately normal errors underlie the reported intervals. Five domains and overlapping strata have no multiplicity adjustment. These synthetic nonrandomized teaching patterns do not support a causal efficacy claim.
Alternative views
Prespecify the estimand and missing-data strategy for a real trial. Consider justified robust covariance, treatment-by-baseline interaction, longitudinal models or multiple-imputation sensitivity analyses, each with separate assumptions and QC.
Read, reproduce, then adapt
Four-step review guide · Compare complementary figures
Compare the All-participants Fatigue coefficient with the two within-arm mean changes. Explain why subtracting separate interval endpoints is not the ANCOVA interval. Inspect complete cases by arm and identify which randomized-population questions remain unanswered.
- Open the selected CSV and reconcile counts before comparing outcomes.
- Run the minimal example locally, then inspect the native Figure or ggplot object.
- For your own authorized data, explicitly map subject, arm, scheduled time and units. Keep expected missing visits as rows, document exclusions, and revise the contract for your trial design.
- Run invalid-input and known-answer checks before comparing R/Python outputs.
Executed source and separate QC layers
Original author: Jaime Yan. Personal noncommercial use only. License · Required citation · Upstream attribution
Python reusable implementation · R reusable implementation · Complete reproducible source bundle
Extract the complete bundle and run these commands from its root. Recorded environments: Python · R.
python examples/adjusted_domains.py All
Rscript --vanilla examples/adjusted_domains.R All
python scripts/render_adjusted_domains.py --rscript Rscript- Numerical validation
- 15 independently fitted domain/stratum contrasts; max absolute difference 6.821e-13. Tolerance 1e-9 absolute/relative; counts exact.
- Data QC
- Keys, schedules, units, finite ranges, empty and sparse populations tested.
- Export QC
- CSV/JSON selection, parsed SVG, PNG dimensions, readable PDF text and Python text bounds checked.
- Package-risk assessment
- Not run. Numerical agreement is not package-risk or regulatory validation.
- Browser evidence
- Recorded separately in the local delivery report; no accessibility certification claimed.
Machine-readable numerical QC · Source, input and artifact hashes
Input: the library's original synthetic generator, seed 20260921, 36 fictional participants. Separate from CDISC Pilot. The deterministic missingness mechanism is described in the contract. No patient or employer records.