CorrelationsWithSignificance: 'CorrelationsWithSignificance'

View source: R/covariancecorrelation.R

CorrelationsWithSignificanceR Documentation

CorrelationsWithSignificance

Description

Computes correlations with significance from zero.

Usage

CorrelationsWithSignificance(data, weights, spearman = FALSE)

Arguments

data

A numeric data frame

weights

A vector of weights

spearman

Whether to compute Spearman correlations instead of Pearson correlations.

Value

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


NumbersInternational/flipStatistics documentation built on April 12, 2024, 9:25 a.m.