multivariateCorrelation: Calculate correlations between numeric variables

Description Usage Arguments Value

Description

Can return one of two objects. 1. Dataframe of ranked absolute correlation pairs, or 2. Correlation matrix of all variables.

Usage

1
2
3
multivariateCorrelation(df, dropnotnumeric = TRUE, output = "ranked",
  N = NULL, use = "everything", method = c("pearson", "kendall",
  "spearman"))

Arguments

df

Dataframe containing all variables.

dropnotnumeric

Logical, defaults to TRUE. Automatically drop any non-numeric variables from the dataframe.

output

Determines which output type to return. One of ranked for ranked correlation pairs or matrix for the correlation matrix.

N

Only used when output = "ranked". Default NULL will return all variable pair correlations. Change to e.g. N = 5 to return only the 5 highest absolute correlations

use

Same as use in the cor function.

method

Same as method in the cor function.

Value

Returns the correlation matrix if output = "matrix" or dataframe of ordered variable pair correlations if output = "ranked".


elastacloud/automatic-data-explorer documentation built on May 8, 2019, 9:29 a.m.