eq.corr: Test for lack of association: Equivalence-based correlation...

Description Usage Arguments Value Author(s) Examples

View source: R/eq.corr.R

Description

Function performs a traditional Pearson correlation test, an equivalence based test of lack of association, an equivalence based test of lack of association using a Fisher's z transformation, and an equivalence based test of lack of association with resampling.

Usage

1
2
3
4
eq.corr(dat, ei, alpha = 0.05, na.rm = TRUE, ...)

## S3 method for class 'eq.corr'
print(x, ...)

Arguments

dat

a data.frame or matrix containing only 2 variables

ei

equivalence interval, in terms of the magnitude of a correlation

alpha

desired alpha level

na.rm

logical; remove missing values?

...

additional arguments to be passed

x

object of class eq.corr

Value

returns a list containing each analysis and their respective statistics and decision

Author(s)

Rob Cribbie cribbie@yorku.ca and Phil Chalmers rphilip.chalmers@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#equivalence correlation test between v1 and v2 with an interval of .2
v1 <- rnorm(100)
v2 <- v1 + rnorm(100, 2)
dat <- data.frame(v1, v2)
plot(dat)
cor(dat)
eq.corr(dat, .2)

## End(Not run)

cribbie/equivalencetests documentation built on May 14, 2019, 11:33 a.m.