R/statpsych2.R
power.cor2.Rd
Computes the approximate power of a test for equal population Pearson or partial correlations in a 2-group design for planned sample sizes. Set s = 0 for a Pearson correlation.
power.cor2(alpha, n1, n2, cor1, cor2, s)
alpha level for hypothesis test
planned sample size for group 1
planned sample size for group 2
planning value of correlation for group 1
planning value of correlation for group 1
number of control variables
Returns the approximate power of the test
power.cor2(.05, 200, 200, .4, .2, 0)
#> Power
#> 0.5919682
# Should return:
# Power
# 0.5919682