Description Usage Arguments Value Examples
View source: R/power_2t_equal.R
Same idea as power.t.test
. Less flexible, but faster.
1 | power_2t_equal(n = 100, d, sigsq, alpha = 0.05)
|
n |
Numeric value specifying per-group sample size. |
d |
Numeric value specifying true difference in group means. Should be positive. |
sigsq |
Numeric value specifying the variance of observations. |
alpha |
Numeric value specifying type-1 error rate. |
Numeric value.
1 2 | # Power to detect difference of 0.2 with 100 subjects per group and sigsq = 1
power_2t_equal(n = 100, d = 0.2, sigsq = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.