Calculates the critical value for Spearman's correlation coeficient.

Spearman_crit(n, conf.level = 0.95)

Arguments

n

Sample size of the correlated values

conf.level

Confidence level to use for the critical value (Default is 0.95, and see details section below)

Value

Spearman's critical value for a given sample size

Details

The result of this function can be used to estimate the statistical signficance of Spearman's correlation coeficient. The options for confidence level are 0.99, 0.95, or 0.90

References

Swan, A. R. H. & Sandilands, M. (1995). Introduction to Geological Data Analysis. Blackwell Science.

Examples

Spearman_crit(10)
#> [1] 0.695
Spearman_crit(10, conf.level = 0.9)
#> [1] 0.611