Skip to contents

Specify

stress_spec()
Define the pre-specified MMRM to stress-test
stress_spec_mmrm()
Build a stress spec from a fitted mmrm model
stress_spec_adam()
Build a stress spec from an ADaM basic data structure
spec_update()
Modify a stress spec
stress_fit()
Fit one MMRM and return one row

Perturbation families

stress_covariance()
Perturbation family: within-subject covariance structure
stress_inference()
Perturbation family: degrees-of-freedom method and variance estimator
default_inference()
Default inference settings for stress_inference()
stress_covariates()
Perturbation family: covariate set
stress_weights()
Perturbation family: least-squares-mean weighting
stress_data()
Perturbation family: alternative analysis data sets
stress_population()
Perturbation family: analysis population
stress_loo()
Perturbation family: leave-one-out deletions
stress_grid()
Perturbation family: crossed specification grid
stress_permute()
Perturbation family: re-randomisation (permutation) test
stress_tipping()
Perturbation family: delta-adjusted multiple imputation (tipping point)
stress_reference()
Perturbation family: reference-based multiple imputation
stress_estimator()
Perturbation family: estimator class
stress_fragility()
Smallest set of subjects whose removal changes the conclusion
stress_curve()
Perturbation family: a curve over a continuous data perturbation
stress_estimand()
Perturbation family: intercurrent-event strategies (ICH E9(R1))
stress_visits()
Perturbation family: the contrast at every visit
stress_ranktest()
Perturbation family: rank tests at the contrast visit

Census and verdict

stress_census()
Assemble a census of perturbations against the base analysis
summary(<stress_census>)
Summarise a census by family
stress_verdict()
Classify the census: robust, sensitive or fragile, and marginal
stress_path()
Smallest combination of analytic changes that leaves the confidence interval
path_changes()
Candidate analytic changes for the path search
tipping_point()
Find where a p-value curve crosses alpha
stress_explain()
Explain why an alternative analysis moved
stress_direction()
Direction stability of a result that misses significance

Pre-specify, run, report

stress_plan()
Pre-specify a stress test
standard_plan()
The standard stress test
run_plan()
Run a pre-specified stress test
run_plans()
Run several plans (several endpoints or comparisons) and compare
stress_report()
Write a stress-test report
stress_tables()
Write regulatory-style tables and the census
stress_log()
Write the run log for an audit trail
stress_html()
Interactive HTML report
stress_sap()
Statistical-analysis-plan text for a stress test
mask_ids()
Mask subject identifiers in a census

Figures

plot(<stress_census>)
Plot a census: one row per family on the percent-of-base axis
plot_swarm()
Swarm of every re-analysis against the filed result
plot_forest()
Forest plot of the filed analysis and the supplementary rows
plot_pcurve()
Plot p-value curves over a continuous perturbation
plot_pstrip()
Strip plot of p-values after each deletion
plot_pcdf()
Empirical distribution of the p-values across a census

Design and simulation

stress_design() print(<stress_design>)
Size a trial for a robust result
plot(<stress_design>)
Plot power and robustness power against the sample size
simulate_trial()
Simulate a two-arm longitudinal trial
simulate_rare_trial()
Simulate a small trial with rare-disease features
stress_calibrate()
Pre-trial calibration of the stress test