computeCIs: Calculate confidence intervals for final predictions (missing...

Description Usage Arguments Value See Also

View source: R/functions_analysis.R

Description

Our procedure involves creating a set of simulated data based on the original known data. Thus, for each observation we end up with a distribution of predictions, rather than a single point estimate. This allows us to calculate confidence intervals around each prediction. This CI calculation is done only for observations with missing values (i.e., those that were imputed).

Usage

1
computeCIs(blended.results, confidence.level = 0.95)

Arguments

blended.results

Blended predictions from imputation models, calculated at convergence iterations and blending proportions computed by computeBlendingRatio() (output of blendImputations())

confidence.level

Level at which to calculate confidence intervals; default is 0.95

Value

A list of length two, containing a data frame describing distribution of predictions (one prediction per simulation) for each observation that was imputed, and another data frame describing the confidence interval calculated for each of these observations; note that the latter includes a column called "error.flag" that indicates whether there was an error in computing the CI (the detailed errors are printed during execution)

See Also

blendImputations()

stats::t.test()


saharaja/imputeORS documentation built on Feb. 4, 2022, 12:27 a.m.