Mean estimator's variance from asymptotically normal confidence interval
estimator_var_from_ci.Rd
Auxiliary function to estimate the estimator's variance (_i.e. standard error
squared) from an asymptotically normal confidence interval of level 1 - alpha
by implementing
the following function:
\[
\text{var} = \Bigg(\dfrac{U - L}{2\cdot Z_{1 - \alpha/2}}\Bigg)^2
\]
where U
and L
are the upper and lower bounds of the interval
Arguments
- upper_limit
Upper bound for the confidence interval
- lower_limit
Lower bound for the confidence interval
- confidence_level
Confidence level of the confidence interval
Note
Remember that the variance of the mean-estimator from asymptotically normal confidence intervals is the estimator's standard error squared