power_2t_equal: Calculate Power for Two-Sample Equal Variance T-Test

Description Usage Arguments Value Examples

View source: R/power_2t_equal.R

Description

Same idea as power.t.test. Less flexible, but faster.

Usage

1
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

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)

dvmisc documentation built on Dec. 18, 2019, 1:35 a.m.