Description Usage Arguments Value Examples
Pearson Correlation Coefficient & Spearman Correlation Coefficient
1 2 | corr.spear(x, y, r0 = 0, xl, yl, mt, step = 1:2, alp = 0.05,
dig = 4)
|
x |
Vector of x-data |
y |
Vector of y-data |
r0 |
Correlation coefficient value under the null hypothesis, Default: 0 |
xl |
Name of x-data |
yl |
Name of y-data |
mt |
Title of scatter plot |
step |
Steps of the analysis, Default: 1:2 |
alp |
Level of significance, Default: 0.05 |
dig |
Number of digits below the decimal point, Default: 4 |
None.
1 2 3 | x = c(10,7,0,1,5, 2,8,6,4,9, 3,0,2,4,6, 8)
y = c(75,77,91,64,79, 81,90,86,82,76, 89,93,80,87,83, 78)
corr.spear(x, y, r0=0, xl="Play", yl="Score", step=1:3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.