vec_power | R Documentation |
This function allows you to use power.t.test, power.prop.test, etc in vectorized fashion and return a table of results
vec_power(fun = stats::power.t.test, ...)
fun |
a power calculating function; <function> |
... |
the arguments for the power calculating function assigned to 'fun'; |
tibble of results
# single non-vectorized output
vec_power(fun = power.t.test, n = 100, delta = 1, sd = 1, sig.level = 0.05)
# multiple vectorized output
vec_power(fun = power.t.test, n = 80:100, delta = 1, sd = 1, sig.level = 0.05)
# every combination of arguments vectorized output
vec_power(fun = power.t.test, n = 90:100, delta = 1, sd = seq(0, 1, length=10), sig.level = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.