Learn R Programming

TOSTER (version 0.8.3)

as_htest: Convert to class 'htest'

Description

[Maturing]

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

Usage

as_htest(TOST)

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.

Arguments

TOST

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

See Also

Other htest: htest-helpers, simple_htest()

Examples

Run this code
res1 = t_TOST(formula = extra ~ group,data = sleep,eqb = .5,smd_ci = "goulet")
as_htest(res1)

Run the code above in your browser using DataLab