Learn R Programming

dvmisc (version 1.1.4)

power_2t_equal: 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

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab