Skip to contents

The Calculator module in run_app() evaluates distribution-function scripts. The same engine is available as ggpower_calculator().

Basic arithmetic

ggpower_calculator("2^3 + 1")
#> [1] 9

Inverse normal

ggpower_calculator("zinv(0.975)")
#> [1] 1.959964

Noncentral t CDF

ggpower_calculator("nctcdf(1.699127, 29, 3.423266)")
#> [1] 0.04485563

Multi-line script

ggpower_calculator("alpha <- 0.05
nctcdf(1.699127, 29, 3.423266)")
#> [1] 0.04485563

Available helpers

Common functions: zcdf, zinv, tcdf, tinv, fcdf, finv, chisqcdf, chisqinv, ncfcdf, nctcdf, binomcdf, and assignment with <-.