Description Usage Arguments Details Value See Also
View source: R/fun_calc_prop.R
For all pre-set combinations of n, theta, xi and alpha, this function calculates a list of powCalc objects and saves the list.
1 | calc_prop(n, theta, xi, alpha, save_path)
|
n |
numeric vector containing possible range of sample sizes |
theta |
numeric vector containing possible range of effect sizes |
xi |
numeric vector containing possible range of proportions |
alpha |
numeric vector containing possible range of significance levels |
save_path |
string inidicating where the function output should be saved |
Input parameters are optional. Defaults:
n <- seq(from = 3, to = 10000, by = 5)
theta <- c(seq(from = 0, to = 0.15, by = 0.0125), seq(from = 0.2, to = 0.5, by = 0.05))
xi <- seq(from = 0.05, to = 1, by = 0.05)
alpha <- c(0.01, 0.025, 0.05)
save_path <- file.path("inst", "extdata", "calc_prop_test.rds")
list of calculated powCalc objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.