Extract the upper bound of a confidence set
upper(x, ...)
# S3 method for class 'confidence_set'
upper(x, ...)Named numeric scalar with the upper bound.
cs <- invert_test(
function(theta) wald_test(estimate = 5, se = 1.2, null_value = theta),
grid = seq(0, 10, by = 0.1)
)
upper(cs)
#> upper
#> 7.3