View source: R/eval.power.binary.imbalanced.R
eval.power.binary.imbalanced | R Documentation |
This function allows you estimate power for a binary variable given a defined number of case samples, control samples, effect size, and significance threshold.
eval.power.binary.imbalanced(N_case, N_control, effect, alpha)
N_case |
a numeric vector of sample size of cases |
N_control |
a numeric vector of sample size of controls |
effect |
a numeric vector of effect size |
alpha |
a numeric vector of significance thresholds |
a matrix of paramater inputs and power estimates are returned as a matrix
eval.power.binary.imbalanced( N_case = 1000, N_control = 1000, effect = 0.01, alpha = 0.05 ) eval.power.binary.imbalanced( N_case = c(1000, 2000), N_control = c(1000, 2000), effect = 0.01, alpha = 0.05 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.