Confidence Interval - Zero Hit

zero_hit(lo, up)

Arguments

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)\).

Value

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)\).

See also

Other confidence interval hit functions: theta_hit()

Examples

# FALSE zero_hit(lo = 1, up = 2)
#> [1] FALSE
# TRUE zero_hit(lo = -1, up = 1)
#> [1] TRUE