TOST One Sample T-Test in jamovi. This function is not meant to be utilized in R. See t_TOST function.

dataTOSTone(
  data,
  vars,
  mu = 0,
  hypothesis = "EQU",
  low_eqbound = -0.5,
  high_eqbound = 0.5,
  eqbound_type = "raw",
  alpha = 0.05,
  desc = FALSE,
  plots = FALSE,
  low_eqbound_d = -999999999,
  high_eqbound_d = -999999999,
  smd_type = "g"
)

Arguments

data

the data as a data frame

vars

a vector of strings naming variables of interest in data

mu

a number (default: 0) to compare against

hypothesis

'EQU' for equivalence (default), or 'MET' for minimal effects test, the alternative hypothesis;

low_eqbound

a number (default: -0.5) the lower equivalence bounds

high_eqbound

a number (default: 0.5) the upper equivalence bounds

eqbound_type

'SMD' (default) or 'raw'; whether the bounds are specified in Cohen's d 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_d

deprecated

high_eqbound_d

deprecated

smd_type

'd' (default) or 'g'; whether the calculated effect size is biased (d) or bias-corrected (g).

Value

A results object containing:

results$texta html
results$tosta table
results$eqba table
results$effsizea table
results$desca table
results$plotsan 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)

Examples

library("TOSTER")

dataTOSTone(data=iris, vars="Sepal.Width", mu=3, low_eqbound=-0.3, high_eqbound=0.3,
            alpha=0.05, desc=TRUE, plots=TRUE)
#> 
#>  TOST ONE SAMPLE T-TEST
#> 
#>  Hypothesis Tested: Equivalence
#> 
#>  Null Hypothesis: -0.3 >= (Mean - mu) or (Mean - mu) >= 0.3
#>  Alternative: -0.3 < (Mean - mu) < 0.3
#>  &#9989 NHST: reject null significance hypothesis that the effect is
#>  equal to zero
#>  &#10060 TOST: don't reject null equivalence hypothesis
#> 
#>  Note: SMD confidence intervals are an approximation. See our <a
#>  href="https://aaroncaldwell.us/TOSTERpkg/articles/SMD_calcs.html">documentation.
#> 
#>  TOST Results                                                   
#>  ────────────────────────────────────────────────────────────── 
#>                                 t           df     p            
#>  ────────────────────────────────────────────────────────────── 
#>    Sepal.Width    t-test        85.90830    149    < .0000001   
#>                   TOST Lower    94.33803    149    < .0000001   
#>                   TOST Upper    77.47857    149     1.0000000   
#>  ────────────────────────────────────────────────────────────── 
#> 
#> 
#>  Equivalence Bounds                                      
#>  ─────────────────────────────────────────────────────── 
#>                                Low           High        
#>  ─────────────────────────────────────────────────────── 
#>    Sepal.Width    Cohen's d    -0.6882845    0.6882845   
#>                   Raw          -0.3000000    0.3000000   
#>  ─────────────────────────────────────────────────────── 
#> 
#> 
#>  Effect Sizes                                                      
#>  ───────────────────────────────────────────────────────────────── 
#>                                 Estimate    Lower       Upper      
#>  ───────────────────────────────────────────────────────────────── 
#>    Sepal.Width    Hedges's g    6.979007    6.368219    7.741790   
#>                   Raw           3.057333    2.998429    3.116237   
#>  ───────────────────────────────────────────────────────────────── 
#> 
#> 
#>  Descriptives                                                              
#>  ───────────────────────────────────────────────────────────────────────── 
#>                   N      Mean        Median      SD           SE           
#>  ───────────────────────────────────────────────────────────────────────── 
#>    Sepal.Width    150    3.057333    3.000000    0.4358663    0.03558833   
#>  ───────────────────────────────────────────────────────────────────────── 
#> 


TOSTone(m=3.05733, mu=3, sd=0.4358663, n=150, low_eqbound_d=-0.3, high_eqbound_d=0.3, alpha=0.05)
#> Warning: `TOSTone()` was deprecated in TOSTER 0.4.0.
#>  Please use `tsum_TOST()` instead.
#> TOST results:
#> t-value lower bound: 5.29 	p-value lower bound: 0.0000002
#> t-value upper bound: -2.06 	p-value upper bound: 0.020
#> degrees of freedom : 149
#> 
#> Equivalence bounds (Cohen's d):
#> low eqbound: -0.3 
#> high eqbound: 0.3
#> 
#> Equivalence bounds (raw scores):
#> low eqbound: -0.1308 
#> high eqbound: 0.1308
#> 
#> TOST confidence interval:
#> lower bound 90% CI: -0.002
#> upper bound 90% CI:  0.116
#> 
#> NHST confidence interval:
#> lower bound 95% CI: -0.013
#> upper bound 95% CI:  0.128
#> 
#> Equivalence Test Result:
#> The equivalence test was significant, t(149) = -2.063, p = 0.0204, given equivalence bounds of -0.131 and 0.131 (on a raw scale) and an alpha of 0.05.
#> 
#> 
#> Null Hypothesis Test Result:
#> The null hypothesis test was non-significant, t(149) = 1.611, p = 0.109, given an alpha of 0.05.
#> 
#> 
#> NHST: don't reject null significance hypothesis that the effect is equal to 0 
#> TOST: reject null equivalence hypothesis