[Maturing]

Convert a TOSTER result object of class 'TOSTt' or 'TOSTnp' to a list of class 'htest'.

as_htest(TOST)

Arguments

TOST

A TOSTER result object of class 'TOSTt' or 'TOSTnp'.

Value

Returns a list containing a list of class 'htest' for the result of each test with the following elements:

data.name

A character string giving the names of the data.

estimate

Estimated difference in raw units.

method

A character string indicating the performed test.

null.value

Equivalence bound.

alternative

A character string describing the alternative hypothesis.

parameter

The degrees of freedom of the distribution of the test statistic.

statistic

The value of the test statistic.

p.value

The p-value of the test.

conf.int

The confidence interval of the difference.

See also

Other htest: htest-helpers, simple_htest()

Examples

res1 = t_TOST(formula = extra ~ group,data = sleep,eqb = .5,smd_ci = "goulet")
as_htest(res1)
#> 
#> 	Welch Two Sample t-test
#> 
#> data:  extra by group
#> t = -1.2719, df = 17.776, p-value = 0.8901
#> alternative hypothesis: equivalence
#> null values:
#> mean difference mean difference 
#>            -0.5             0.5 
#> 90 percent confidence interval:
#>  -3.0533815 -0.1066185
#> sample estimates:
#> mean difference 
#>           -1.58 
#>