power.cor {genefu} | R Documentation

## Function for sample size calculation for correlation coefficients

### Description

This function enables to compute the sample size requirements for estimating pearson, kendall and spearman correlations

### Usage

    power.cor(rho, w, alpha = 0.05, method = c("pearson", "kendall", "spearman"))

### Arguments

`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.

### Value

sample size requirement

### Author(s)

Benjamin Haibe-Kains

### 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

### Examples

    power.cor(rho=0.5, w=0.1, alpha=0.05, method="spearman")

[Package genefu version 2.16.0 Index]