corr.spear: Pearson & Spearman Correlation Coefficient

Description Usage Arguments Value Examples

View source: R/ch15-fn.R

Description

Pearson Correlation Coefficient & Spearman Correlation Coefficient

Usage

1
2
corr.spear(x, y, r0 = 0, xl, yl, mt, step = 1:2, alp = 0.05,
  dig = 4)

Arguments

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

Value

None.

Examples

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)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.