Provides magnitude-based inferences for the association between given data vectors. Evaluates normality assumption, performs either Pearson or Spearman correlation and subsequently estimates magnitude-based inferences.
Usage
corr_test(x, y, conf.int = 0.9, auto = TRUE, method = "pearson",
swc = 0.1, plot = FALSE)
Arguments
x, y
numeric vectors of data values
conf.int
(optional) confidence level of the interval. Defaults to 0.90
auto
(character) logical indicator specifying if user wants function to programmatically detect statistical procedures. Defaults to TRUE
method
(character) if auto = F, logical indicator specifying which correlation to execute (pearson, spearman, kendall). Defaults to "pearson".
swc
(optional) number indicating smallest worthwhile change. Defaults to 0.1
plot
(optional) logical indicator specifying to print associated plot. Defaults to FALSE
Value
Associated effect size measure, r, and respective confidence intervals.