View source: R/covariancecorrelation.R
CorrelationsWithSignificance | R Documentation |
CorrelationsWithSignificance
Computes correlations with significance from zero.
CorrelationsWithSignificance(data, weights, spearman = FALSE)
data |
A numeric data frame |
weights |
A vector of weights |
spearman |
Whether to compute Spearman correlations instead of Pearson correlations. |
A list with four elements
correlation
A numeric correlation matrix of (possibly weighted) correlations computed on the input data.frame
standard.errors
A numeric matrix with the standard errors of the computed correlations above
statistics
A numeric matrix of the t-stastiscs computed based on the correlation and standard errors above
p.values
A numeric matrix of p-values computed based on the t-statistics and df computed from the
number of values used in the correlation calculation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.