View source: R/datatosttwo.h.R
| dataTOSTtwo | R Documentation | 
TOST Independent Samples T-Test for jamovi. This function is not meant to be utilized in R. See t_TOST function.
dataTOSTtwo(
  data,
  deps,
  group,
  var_equal = FALSE,
  hypothesis = "EQU",
  low_eqbound = -0.5,
  high_eqbound = 0.5,
  eqbound_type = "raw",
  alpha = 0.05,
  desc = FALSE,
  plots = FALSE,
  descplots = FALSE,
  low_eqbound_d = -999999999,
  high_eqbound_d = -999999999,
  smd_type = "g"
)
data | 
 the data as a data frame  | 
deps | 
 a vector of strings naming dependent variables in   | 
group | 
 a string naming the grouping variable in   | 
var_equal | 
 
  | 
hypothesis | 
 
  | 
low_eqbound | 
 a number (default: -0.5) the lower equivalence/MET bounds  | 
high_eqbound | 
 a number (default: 0.5) the upper equivalence/MET bounds  | 
eqbound_type | 
 
  | 
alpha | 
 alpha level (default = 0.05)  | 
desc | 
 
  | 
plots | 
 
  | 
descplots | 
 
  | 
low_eqbound_d | 
 deprecated  | 
high_eqbound_d | 
 deprecated  | 
smd_type | 
 
  | 
A results object containing:
results$text  | a html | ||||
results$tost  | a table | ||||
results$eqb  | a table | ||||
results$effsize  | a table | ||||
results$desc  | a table | ||||
results$plots  | an array of images | ||||
results$descplots  | 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)
Berger, R. L., & Hsu, J. C. (1996). Bioequivalence Trials, Intersection-Union Tests and Equivalence Confidence Sets. Statistical Science, 11(4), 283-302.
Gruman, J. A., Cribbie, R. A., & Arpin-Cribbie, C. A. (2007). The effects of heteroscedasticity on tests of equivalence. Journal of Modern Applied Statistical Methods, 6(1), 133-140, formula for Welch's t-test on page 135
library(TOSTER)
## Load iris dataset, remove one of the three groups so two are left
data<-iris[which(iris$Species!="versicolor"),]
## TOST procedure on the raw data
dataTOSTtwo(data, deps="Sepal.Width", group="Species", var_equal = TRUE, low_eqbound = -0.5,
            high_eqbound = 0.5, alpha = 0.05, desc = TRUE, plots = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.