Confidence Interval - Zero Hit
zero_hit(lo, up)
lo | Numeric. Lower limit of the estimated confidence interval \(\left( \hat{\theta}_{\mathrm{lo}} \right)\). |
---|---|
up | Numeric. Upper limit of the estimated confidence interval \(\left( \hat{\theta}_{\mathrm{up}} \right)\). |
Returns
TRUE
if zero is between the interval
lo
\(\left( \hat{\theta}_{\mathrm{lo}} \right)\)
to
up
\(\left( \hat{\theta}_{\mathrm{up}} \right)\).
Returns
FALSE
if zero is outside the interval
lo
\(\left( \hat{\theta}_{\mathrm{lo}} \right)\)
to
up
\(\left( \hat{\theta}_{\mathrm{up}} \right)\).
Other confidence interval hit functions:
theta_hit()
# FALSE zero_hit(lo = 1, up = 2)#> [1] FALSE# TRUE zero_hit(lo = -1, up = 1)#> [1] TRUE