Correaltion coefficients rho (Pearson, Kendall or Spearman)
w
a numerical vector of weights of the same length as x giving the weights to use for elements of x in the first class.
alpha
alpha level
method
a character string specifying the method to compute the correlation coefficient, must be one of "pearson" (default), "kendall" or "spearman". You can specify just the initial letter.
Value
sample size requirement
References
Bonett, D. G., and Wright, T. A. (2000). Sample size requirements for estimating pearson, kendall and spearman correlations. Psychometrika, 65(1), 23-28. doi:10.1007/BF02294183