Wrap pwr test.
# S3 method for power.htest wrapPWR(x, ...)
x | pwr test result |
---|---|
... | extra arguments (not used) |
formatted string and fields
if(require("pwr", quietly = TRUE)) { # Example from pwr package # Exercise 6.1 p. 198 from Cohen (1988) test <- pwr::pwr.2p.test(h=0.3,n=80,sig.level=0.05,alternative="greater") wrapPWR(test) }#> [1] "Difference of proportion power calculation for binomial distribution (arcsine transformation) sig=n.s., 1-pwr=n.s.; h: 0.3, n: 80, alternative: greater."