powered by
tidy a power.htest
# S3 method for power.htest tidy(x, ...)
a power.htest object
extra arguments, not used
A data frame with one row per parameter passed in, with columns n, delta, sd, sig.level, and power (from the power.htest object).
n
delta
sd
sig.level
power
power.htest
power.t.test
# NOT RUN { ptt <- power.t.test(n = 2:30, delta = 1) tidy(ptt) library(ggplot2) ggplot(tidy(ptt), aes(n, power)) + geom_line() # }
Run the code above in your browser using DataLab