Skip to contents

Inflates the half-width of an existing CI by 1 / confidence. Useful when the underlying point estimate is from observations and you want the displayed band to grow as the data ages, without refitting the model.

This is a heuristic display device, not a proper Bayesian update. It preserves the median estimate and only stretches the band. Stretching is applied symmetrically about the point estimate.

Usage

widen_ci(point, lower, upper, confidence)

Arguments

point

Numeric vector of point estimates.

lower

Numeric vector of original CI lower bounds.

upper

Numeric vector of original CI upper bounds.

confidence

Numeric multiplier in (0, 1] (e.g. from compute_obs_confidence()). Vectorised — recycled to length of point.

Value

List with lower and upper numeric vectors, widened symmetrically about point.

See also

Examples

widen_ci(point = 10, lower = 8, upper = 12, confidence = 0.5)
#> $lower
#> [1] 6
#> 
#> $upper
#> [1] 14
#>