Learn R Programming

TOSTER (version 0.3.4)

dataTOSTpaired: TOST Paired Samples T-Test

Description

TOST Paired Samples T-Test

Usage

dataTOSTpaired(data, pairs, low_eqbound = -0.5, high_eqbound = 0.5,
  eqbound_type = "d", alpha = 0.05, desc = FALSE, plots = FALSE,
  low_eqbound_dz = -999999999, high_eqbound_dz = -999999999)

Arguments

data

the data as a data frame

pairs

a list of vectors of strings naming variables to pair from data

low_eqbound

a number (default: 0.5) the lower equivalence bounds

high_eqbound

a number (default: 0.5) the upper equivalence bounds

eqbound_type

'd' (default) or 'raw'; whether the bounds are specified in standardized mean difference (Cohen's dz) or raw units respectively

alpha

alpha level (default = 0.05)

desc

TRUE or FALSE (default), provide descriptive statistics

plots

TRUE or FALSE (default), provide plots

low_eqbound_dz

deprecated

high_eqbound_dz

deprecated

Value

A results object containing:

results$tost a table
results$eqb a table
results$desc a table
results$plots an array of images

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$tost$asDF

as.data.frame(results$tost)

References

Mara, C. A., & Cribbie, R. A. (2012). Paired-Samples Tests of Equivalence. Communications in Statistics - Simulation and Computation, 41(10), 1928-1943. https://doi.org/10.1080/03610918.2011.626545, formula page 1932. Note there is a typo in the formula: n-1 should be n (personal communication, 31-08-2016)

Examples

Run this code
# NOT RUN {
library("TOSTER")

dataTOSTpaired(data = randu, pairs = list(c(i1="x",i2="y")), low_eqbound = -0.3,
               high_eqbound = 0.3, alpha = 0.05, desc = TRUE, plots = TRUE)

# }

Run the code above in your browser using DataLab