Description Usage Arguments Examples
Given a dataset, calculate the correlation coefficient of each variable with a chosen target variable. The number of observations in the data frame must match the length of the target vector. Returns a data frame listing the feature names and associated correlation coefficient.
1 | get_correlations(data, target)
|
data |
Data Frame for which the correlations will be calculated |
target |
OUtcome Vector to calculate pairwise correlations with |
1 | get_correlations(data, data$target)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.