size.test.cor2 {statpsych}R Documentation

Sample size for a test of equal Pearson or partial correlation in a 2-group design

Description

Computes the sample size required to test equality of two Pearson or partial correlation with desired power in a 2-group design. Set s = 0 for a Pearson correlation.

Usage

size.test.cor2(alpha, pow, cor1, cor2, s)

Arguments

alpha

alpha level for hypothesis test

pow

desired power

cor1

planning value of correlation

cor2

planning value of correlation

s

number of control variables

Value

Returns the required sample size for each group

Examples

size.test.cor2(.05, .8, .4, .2, 0)

# Should return:
# Sample size per group
#                   325
 


[Package statpsych version 1.5.0 Index]