cor.test2: Extensió de la funció cor.test {stats}

Description Usage Arguments Value

View source: R/cor.test2.R

Description

La justificació d'haver fet aquesta funció: 1) la funció cor {stats} no retorna els p-values; 2) la funció cor.test {stats} no permet passar un conjunt de dades. Aquesta extensió permet obtenir el valor p de les correlacions calculades a partir d'un conjunt de dades.

Usage

1
cor.test2(x, y, method = "spearman", conf.level = 0.95, ...)

Arguments

x

numeric vector of data values. x and y must have the same length.

y

numeric vector of data values. x and y must have the same length.

method

a character string indicating which correlation coefficient is to be used for the test. Currently only works for "spearman".

conf.level

confidence level of the interval.

...

further arguments to be passed to or from methods.

Value

A list with the correlation, lower and upper bounds of the confidence interval, p-value.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.