Learn R Programming

DiffCorr (version 0.4.4)

cor2.test: Correlation Test

Description

Correlation Test

Usage

cor2.test(n, r, method = c("pearson", "kendall", "spearman"))

Value

p-value

Arguments

n

the number of samples

r

the correlation coefficient

method

"pearson" and "spearman" can be used.

Author

Atsushi Fukushima

References

http://aoki2.si.gunma-u.ac.jp/R/cor2.html

Examples

Run this code
cor2.test(30, 0.6)

Run the code above in your browser using DataLab