ezr.correlation: Correlation

Description Usage Arguments Value

Description

Correlation function.

Usage

1
2
3
4
ezr.correlation(dataset, target = NULL, only_variables = NULL,
  exclude_variables = NULL, only_numeric = TRUE,
  corr_method = "pearson", return_raw_numbers = TRUE,
  return_plot = TRUE, title = NULL, n_limit_using_target = 15)

Arguments

dataset

dataframe

target

optional. The target y value you care about, providing cleaner, streamlined results

only_variables

optional. Only compute correlation with these variables

exclude_variables

optional. Do not compute correlation with these variables

only_numeric

Default TRUE. Only numeric values are considered. Right now the rest is not yet implemented.

corr_method

Default 'pearson'. Other valid values are 'spearman' and 'kendall'

return_raw_numbers

Default is TRUE. Return the raw correlation matrix

return_plot

Default is TRUE. Makes a correlation plot.

title

Default is NULL. Only applies when you are making a plot.

Value

If both return_raw_numbers and return_plot are true then it will return a list of both. Otherwise just returns what was indicated.


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.