is.CI_within {Spower} | R Documentation |
Evaluate whether a confidence interval is within a tolerable interval
Description
Return TRUE
if an estimated confidence interval falls within
a tolerable interval
range. Typically used for
equivalence, superiority, or non-inferiority testing.
Usage
is.CI_within(CI, interval)
Arguments
CI |
estimated confidence interval (length 2) |
interval |
tolerable interval range (length 2) |
Value
logical
Author(s)
Phil Chalmers rphilip.chalmers@gmail.com
See Also
Examples
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
[Package Spower version 0.3.1 Index]