power_2t_equal {dvmisc} | R Documentation |
Calculate Power for Two-Sample Equal Variance T-Test
Description
Same idea as power.t.test
. Less flexible, but faster.
Usage
power_2t_equal(n = 100, d, sigsq, alpha = 0.05)
Arguments
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. |
Value
Numeric value.
Examples
# 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)
[Package dvmisc version 1.1.4 Index]