powered by
A function for computing z-scores of two-sided tests corresponding to power power for a given significance level alpha alpha (or corresponding cut-off z-statistic a).
power
alpha
a
power_to_z( power, alpha = 0.05, a = stats::qnorm(alpha/2, lower.tail = FALSE), two.sided = TRUE, nleqslv_control = list(xtol = 1e-15, maxit = 300, stepmax = 0.5) )
A vector of powers
Level of significance alpha
Or, alternatively a z-score corresponding to alpha
Whether directionality of the effect size should be taken into account.
A named list of control parameters passed to the nleqslv function used for solving the inverse of z_to_power function.
# z-scores corresponding to the (aproximate) power of components of EM2 power_to_z(c(0.05, 0.20, 0.40, 0.60, 0.80, 0.974, 0.999), alpha = .05)
Run the code above in your browser using DataLab