Skip to contents

Source functions

Describe where your SE information comes from.

from_sd()
Create a power source from a reference population SD
from_existing()
Create a power source from an existing study
from_pilot()
Create a power source from pilot data

Goal functions

Compute MDE, power, or required sample size.

find_mde()
Find the minimum detectable effect
find_power()
Find the power for a given effect
find_n()
Find the required sample size

Guides

Interactive walkthrough that outputs a copyable pipeline.

power_rules()
Interactive power analysis guide
shiny_rules()
Browser-based power analysis guide

Utilities

Generate code for external tools.

write_DeclareDesign()
Generate DeclareDesign code for a power analysis
write_manual()
Generate manual calculation code for a power analysis
write_loop()
Generate for-loop simulation code for a power analysis