Calculates confidence interval length.

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

Details

The confidence interval length is given by $$ \mathrm{ confidence \ interval \ length } = \hat{ \theta }_{ \mathrm{ up } } - \hat{ \theta }_{ \mathrm{ lo } } $$

See also

Other confidence interval evaluation functions: ci_eval(), shape()