corr.matrix: Compute pair-wise correlations and hypothesis test

View source: R/correlation.R

corr.matrixR Documentation

Compute pair-wise correlations and hypothesis test

Description

Computes pair-wise correlations between variables in a dataframe df Tests H0: rho = 0 vs H1: rho!=0 by computing p-values.

Usage

corr.matrix(df)

Arguments

df

dataframe

Value

list with two tables: corrs (correlations), pvals (p-values)

Examples

library(regkurs)
corr.matrix(bike[,c("temp","hum","windspeed")])

StatisticsSU/regkurs documentation built on Jan. 29, 2023, 4:54 p.m.