is.CI_within | R Documentation |
Return TRUE
if an estimated confidence interval falls within
a tolerable interval
range. Typically used for
equivalence, superiority, or non-inferiority testing.
is.CI_within(CI, interval)
CI |
estimated confidence interval (length 2) |
interval |
tolerable interval range (length 2) |
logical
Phil Chalmers rphilip.chalmers@gmail.com
is.outside_CI
, Spower
CI <- c(.2, .4)
LU <- c(.1, .3)
is.CI_within(CI, LU) # not within tolerable interval
is.CI_within(CI, c(0, .5)) # is within wider interval
# complement indicates if CI is outside interval
!is.CI_within(CI, LU)
#####
# for superiority test
is.CI_within(CI, c(.1, Inf)) # CI is within tolerable interval
# for inferiority test
is.CI_within(CI, c(-Inf, .3)) # CI is not within tolerable interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.