43.13 Exposure Lab: simulation, power and exposure-response
What you will learn
- What sims, power, er, generate and simulate-study do.
- How uncertainty enters power and simulation.
- How to chain simulation into exposure-response.
Beyond the data in hand
Exposure Lab answers what exposures other patients will reach, how large the next study must be, and how response relates to exposure. (The working name sims-er-power survives in folder and package names.)
The five commands
| Command | What it does | Main outputs |
|---|---|---|
sims |
Builds a study population (adults, children with CDC growth-chart weights, or mixed), doses it, simulates with random effects and residual error, computes steady-state exposure (Cmax, Cmin, Cavg, AUCtau and others), summarises by group and checks targets | subjects, metrics, summary and target tables, report, plots |
power |
Sample size and power by FIM (Fisher information, fast) and, or, SSE (stochastic simulation and estimation: simulate trials, refit, count significant tests), with dropout, schedules, effect size, compliance, missing data and parameter uncertainty | sse_power.csv, fim_power.csv, sample_size.csv, report |
er |
Exposure-response for continuous, binary, ordinal, count, time-to-event and longitudinal endpoints, with covariates, placebo correction and bootstrap | er_analyses.csv, er_*.csv, report |
generate |
A complete fitted example project to feed sims and power |
dataset, run101.* |
simulate-study |
Simulates many datasets under a known truth and measures how well the covariate engines find it | study_results.csv, study_summary.csv, study_metrics.csv |
How you use it
The layout is the same as Models: pick the command, add a control stream and, if you have them, a dataset and the estimates (.ext, .cov) of a fitted model, set the options and press Run. sims can run without any dataset, building its own population from the population options. Uncertainty in power and in sims needs a .cov (or a parameter file); the app refuses the run otherwise, which prevents a power number that ignores parameter uncertainty from looking like it includes it.
Results by command
- sims: a box plot of any exposure metric by arm, sex, population, age or weight group, with the target limits drawn; the share of subjects in range per target and group; and the interval across simulated studies. This is the figure behind a paediatric dose justification.
- power: a power curve (SSE with its confidence band, FIM dashed, the target power as a line) against sample size, dropout, effect size or any factor that varies; the subjects needed; convergence and shrinkage per scenario; and the precision of the parameters.
- er: the fitted relationship by endpoint type, with the analyses table and plots.
- generate: the project, groups and estimates.
- simulate-study: sensitivity, false-positive rate and recovery per scenario and engine, and a heat map of how often each true, proxy or null relationship is retained.
Chaining that carries evidence forward
generatetosimsorpower: control stream and estimates, optionally the generated dataset.simsandpowerpass information in both directions.simstoer: the_metrics.csvof a simulation, one row per subject and simulation, becomes the exposure data of the response analysis.ertoer: refine an analysis.
Your own files always win over the earlier run's, so you can swap in real estimates at any step.
Why FIM and SSE together
FIM is fast and tells you the order of magnitude in seconds. SSE simulates trials and refits them, so it includes failure to converge, shrinkage and the real behaviour of the estimator. Using both is the recommended pattern: scan with FIM, confirm the chosen design with SSE.
Examples
Fifteen examples with 47 one-click uses include the QC datasets with their control streams, the 120-subject oral study with its fitted true model for FIM and SSE power, three simulation control streams that need no data, and the exposure-response studies.
Compare and explore
Compare two runs (for example two doses, or two sample sizes) with the same viewers as the other apps, and use Explore in R with starter scripts for further plots.
Navigation
See the previous page, next page, and the chapter overview.