corr.spear: Pearson & Spearman Correlation Coefficient

View source: R/ch15-fn.R

corr.spearR Documentation

Pearson & Spearman Correlation Coefficient

Description

Pearson Correlation Coefficient & Spearman Correlation Coefficient

Usage

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

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)

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.