Learn R Programming

FDRsamplesize2 (version 0.2.0)

average.power.tcorr: Compute average power of many t-tests for non-zero correlation

Description

Compute average power of many t-tests for non-zero correlation

Usage

average.power.tcorr(n, alpha, rho)

Value

Average power estimate for multiple testing procedure

Arguments

n

sample size (scalar)

alpha

p-value threshold (scalar)

rho

population correlation coefficient (vector)

Details

For many applications, the null.effect is rho = 0

See Also

power.tcorr for more details about power calculation of t-test for non-zero correlation

Examples

Run this code
rho = rep(c(0.3,0),c(100,900));
average.power.tcorr(n = 50, alpha = 0.05, rho = rho)

Run the code above in your browser using DataLab