Learn R Programming

TOSTER (version 0.3.4)

dataTOSTr: TOST Correlation

Description

TOST Correlation

Usage

dataTOSTr(data, pairs, low_eqbound_r = -0.3, high_eqbound_r = 0.3,
  alpha = 0.05, desc = FALSE, plots = FALSE)

Arguments

data

the data as a data frame

pairs

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

low_eqbound_r

lower equivalence bounds (e.g., -0.3) expressed in a correlation effect size

high_eqbound_r

upper equivalence bounds (e.g., 0.3) expressed in a correlation effect size

alpha

alpha level (default = 0.05)

desc

TRUE or FALSE (default), provide descriptive statistics

plots

TRUE or FALSE (default), provide plots

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)