Learn R Programming

broom (version 0.4.3)

tidy.power.htest: tidy a power.htest

Description

tidy a power.htest

Usage

# S3 method for power.htest
tidy(x, ...)

Arguments

x

a power.htest object

...

extra arguments, not used

Value

A data frame with one row per parameter passed in, with columns n, delta, sd, sig.level, and power (from the power.htest object).

See Also

power.t.test

Examples

Run this code
# 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