Description Usage Arguments Value
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
1 2 3 4 |
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. |
A list with two matrices: one with correlation values and other one with p-values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.