as_htest: Convert to class 'htest'

View source: R/htest.R

as_htestR Documentation

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)

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)

TOSTER documentation built on May 29, 2024, 9:57 a.m.