View source: R/eval.power.binary.R
eval.power.binary | R Documentation |
This function allows you estimate power for a binary variable given the sample size, effect size, significance threshold.
eval.power.binary(N, effect, alpha)
N |
a numeric vector of total study sample size, cases and controls will both be defined as N/2. |
effect |
a numeric vector of effect size |
alpha |
a numeric vector of significance thresholds |
a matrix of parameter inputs and an estimate(s) of power are returned as a matrix
eval.power.binary(N = 1000, effect = seq(0.01, 0.3, by = 0.01), alpha = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.