The pwr.r.test
in R which uses the arctanh transformation (Fisher's $z$ transformation) relates inversely with the correlation coefficient. That is, if $r$ is high then $n$ is low.
pwr.r.test(n=NULL, r=.7, sig.level=0.01, power=0.99, alternative="two.sided")
gives n = 34.4932
. Whereas,
pwr.r.test(n=NULL, r=.9, sig.level=0.01, power=0.99, alternative="two.sided")
gives n = 13.84951
.
Isn't that counterintuitive? For a higher correlation value, I'd expect more samples. Thus higher $n$ to say that the correlation is significant.