cor2.prob: Extensió de la funció cor stats La justificació d'haver fet...

Description Usage Arguments Value

View source: R/cor2.prob.R

Description

Extensió de la funció cor stats 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 p-value de les correlacions calculades a partir d'un conjunt de dades

Usage

1
2
3
4
cor2.prob(X, use = "everything", method = c("pearson", "kendall",
  "spearman"), alternative = c("two.sided", "less", "greater"),
  exact = NULL, conf.int = FALSE, conf.level = 0.95,
  continuity = FALSE, ...)

Arguments

X

a numeric vector, matrix or data frame

use

an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs".

method

a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman".

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".

conf.int

a logical indicating whether a confidence interval should be computed.

conf.level

confidence level of the interval.

continuity

logical: if TRUE, a continuity correction is used for Kendall's tau and Spearman's rho when not computed exactly. Default is FALSE

...

further arguments to be passed to or from methods.

Value

A list with two matrices: one with correlation values and other one with p-values.


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