get_ci() extracts the confidence intervals from the output of a call to boot::boot.ci() or fwb.ci() in a clean way. Normally the confidence intervals can be a bit challenging to extract because of the unusual structure of the object.
Arguments
- x
a
bootciobject; the output of a call toboot::boot.ci()orfwb.ci().- type
the type of confidence intervals to extract. Only those available in
xare allowed. Should be a given as a subset of the types passed totypeinboot.ci()orfwb.ci(). The default,"all", extracts all confidence intervals inx.
Value
A list with an entry for each confidence interval type; each entry is a numeric vector of length 2 with names "L" and "U" for the lower and upper interval bounds, respectively. The "conf" attribute contains the confidence level.