# expected correlation is 0.20 and it is different from 0
# it could be 0.20 as well as -0.20
pwrss.z.corr(r = 0.20, r0 = 0,
alpha = 0.05, power = 0.80,
alternative = "not equal")
# expected correlation is 0.20 and it is greater than 0.10
pwrss.z.corr(r = 0.20, r0 = 0.10,
alpha = 0.05, power = 0.80,
alternative = "greater")
Run the code above in your browser using DataLab