Learn R Programming

redist (version 3.1.5)

imp_confint: Confidence Intervals for Importance Sampling Estimates

Description

Builds a confidence interval for the mean of a vector of interest, given importance sampling weights.

Usage

imp_confint(x, conf = 0.95, .data = cur_plans())

Arguments

x

<data-masking> the vector to build importance sampling confidence intervals for.

conf

The confidence level for the intervals.

.data

a redist_plans object

Value

A tibble with three columns: X, X_lower, and X_upper, where X is the name of the vector of interest, containing the mean and confidence interval. When used inside summarize() this will create three columns in the output data.