corr_test {mbir}R Documentation

Correlation Coefficient Test

Description

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

Details

Refer to vignette for further information.

Value

Associated effect size measure, r, and respective confidence intervals.

Examples

a <- rnorm(25, 80, 35)
b <- rnorm(25, 100, 35)

corr_test(a, b, 0.95)

[Package mbir version 1.3.5 Index]