Skip to contents

Compute API

power_compute()
Compute statistical power analyses
ggpower_tests()
List supported statistical power tests
ggpower_result()
Create a ggpower result object
format_result_html()
Format a ggpower result as structured HTML for Shiny UI

t-test Helpers

power_t_one_sample()
Compute Power for a One-Sample t-Test
power_t_two_sample()
Compute Power for a Two-Sample t-Test (Equal Sample Sizes)
power_t_paired()
Compute power for a paired-samples t-test
ggpower_t_one_sample()
Plot Power Curve for a One-Sample t-Test
ggpower_ttest()
Plot Power Curve for a Two-Sample t-Test

Effect Sizes

effect_size_d()
Compute Cohen's d from means and standard deviation
effect_size_f()
Compute Cohen's f from eta-squared
effect_size_f2()
Compute Cohen's f2 from R-squared
effect_size_f2_increase()
Compute f2 for an R-squared increase
effect_size_h()
Compute Cohen's h for two proportions
effect_size_q()
Compute Cohen's q for two correlations
effect_size_w()
Compute chi-square effect size w
eta2_from_f()
Convert Cohen's f to eta-squared
odds_ratio_from_probs()
Compute odds ratio from two probabilities
r2_from_f2()
Convert f2 to R-squared

Publication Figures

theme_ggpower()
Publication-ready ggpower theme
plot_power_curve()
Plot a power curve
plot_distribution()
Plot H0 and H1 distributions
save_power_plot() save_distribution_plot()
Save a ggpower plot

Calculator

ggpower_calculator()
Evaluate a ggpower calculator script

App

run_app()
Run the Shiny Application