Description Usage Arguments Details Value Author(s) See Also
correlation
Computes and summarizes a correlation matrix
1 | correlation(x, target = NULL, threshold = 0, bigMatrix = 10)
|
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. |
Creates a correlation matrix and summarizes pairwise correlations in a correlation table.
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.
John James, jjames@datasciencesalon.org
Other Correlation Functions: corrTest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.