correlation: correlation

Description Usage Arguments Details Value Author(s) See Also

View source: R/correlation.R

Description

correlation Computes and summarizes a correlation matrix

Usage

1
correlation(x, target = NULL, threshold = 0, bigMatrix = 10)

Arguments

x

dataframe containing data to be analyzed

target

optional character string containing the column name for the target variable. If this is provided, the target variable will be excluded from the analysis. Submit the target variable when analyzing correlations only among predictors.

threshold

numeric indicating the minimum correlation threshold to be reported in the correlation table.

bigMatrix

Numeric indicating the number of terms above which the terms are replaced with short labels for plotting.

Details

Creates a correlation matrix and summarizes pairwise correlations in a correlation table.

Value

List containing the correlation matrix and pairwise correlation table. If there are greater than 10 variables, the variable names are replaced by a 2-3 character label for plotting purposes.

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Correlation Functions: corrTest


DataScienceSalon/analyzR documentation built on May 7, 2019, 7:40 a.m.