R/tost.boot.R

"tost.boot" <-
function (x, i, Epsilon=0.5)
{
    x <- x[i]
    mean <- mean(x)
    std <- sd(x)
    n = length(x)

    tint <- (std/sqrt(n)) * qt(0.95, n-1)
    result <- ((mean + tint) < Epsilon & (mean - tint) > -Epsilon)
}

Try the equivalence package in your browser

Any scripts or data that you put into this service are public.

equivalence documentation built on May 1, 2019, 9:15 p.m.