Skip to contents

Core power & sample size

power_ppi_mean()
Power or required sample size for the PPI++ mean estimator
power_ppi_ttest()
Power for PPI++ two-sample t-test (difference in means)
power_ppi_paired()
Power for PPI++ paired t-test (within-subject differences)
power_ppi_ttest_binary()
Power for PPI++ two-sample test with binary outcomes (sens/spec input)
power_ppi_paired_binary()
Power for PPI++ paired test with binary outcomes
power_ppi_regression()
Power or required sample size for PPI++ regression contrast
power_ppi_2x2()
Power or required sample size for a 2x2 table with PPI++ surrogates

Simulation helpers

simulate_ppi_mean()
Monte Carlo power for the PPI++ mean estimator
simulate_ppi_ttest_binary()
Monte Carlo power for binary two-sample PPI++ test
simulate_crossfit_data()
Simulate cross-fitted predictive data

Curves & plotting

power_curve_mean()
Power curve for the PP mean estimator
power_curve_mean_dgp()
Power curve for PPI mean with supplied population moments
type1_error_curve_mean()
Type I error curve for the PP mean estimator
type1_error_curve_mean_dgp()
Type I error and power curve for the PPI mean estimator
plot_type1_error_curve()
Plot Type I error curves

Utilities

binary_moments_from_sens_spec()
Moments for binary outcome/prediction pairs from sensitivity/specificity
resolve_ppi_variances()
Resolve PP variance components from metrics
compute_ppi_blocks()
Construct Hessian/Fisher and Covariance Blocks for PPI/PPI++ Regression
theme_pppower()
Publication-ready ggplot2 theme for pppower
save_pppower_figure()
Save a ggplot figure in PDF and/or PNG formats
ppi_mean_test()
PPI++ One-Sample Mean Test
ppi_paired_test()
PPI++ Paired t-Test
ppi_ttest()
PPI++ Two-Sample t-Test

Deprecated

Soft-deprecated shims; use the renamed functions above.