Extract the upper bound of a confidence set

upper(x, ...)

# S3 method for class 'confidence_set'
upper(x, ...)

Arguments

x

a confidence_set object

...

additional arguments (ignored)

Value

Named numeric scalar with the upper bound.

Examples

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