power.cor | R Documentation |
This function enables to compute the sample size requirements for estimating pearson, kendall and spearman correlations
power.cor(rho, w, alpha = 0.05, method = c("pearson", "kendall", "spearman"))
rho |
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. |
sample size requirement
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
power.cor(rho=0.5, w=0.1, alpha=0.05, method="spearman")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.