power.tcorr: Compute power of the t-test for non-zero correlation

View source: R/power.R

power.tcorrR Documentation

Compute power of the t-test for non-zero correlation

Description

Compute power of the t-test for non-zero correlation

Usage

power.tcorr(n, alpha, rho)

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

Value

Vector of power estimates for two-sided tests

Examples

rho = rep(c(0.3,0),c(100,900));
res = power.tcorr(n = 50, alpha = 0.05, rho = rho)

FDRsamplesize2 documentation built on May 29, 2024, 7:12 a.m.