equivt: Equivalence Test

Description Usage Arguments Author(s) Examples

Description

Test for the equivalence of two groups with a given tolerable interval. If a significant effect is returned for both t-values then there is evidence of equivalence. Allows for equal or unequal variances.

Usage

1
2
3
4
5
  equivt(x, y, equivint, alpha = 0.05, varequiv = FALSE,
    na.rm = TRUE, ...)

  ## S3 method for class 'equivt'
 print(x)

Arguments

x

Numeric vector for group 1.

y

Numeric vector for group 2.

equivint

Equivalence interval.

alpha

Alpha value

varequiv

Logical. Are there equal variances? Default is FALSE.

na.rm

logical; remove missing data?

...

Additional arguments to be passed to the function.

Author(s)

Rob Cribbie and Phil Chalmers

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(nonnorm_hetvar)
attach(nonnorm_hetvar)

#equivalence within 2 points
eq <- 2
equivt(depres[Sex=="female"],depres[Sex=="male"], eq)

## End(Not run)

mattsigal/psyc6130 documentation built on May 21, 2019, 1:26 p.m.