estimate_ci_coverage: Estimate confidence interval coverage for a...

View source: R/summary_functions.R

estimate_ci_coverageR Documentation

Estimate confidence interval coverage for a normality-assuming interval based on the simulation variance.

Description

Estimate confidence interval coverage for a normality-assuming interval based on the simulation variance.

Usage

estimate_ci_coverage(results_df, estimates_truth, conf_level = 0.95)

Arguments

results_df

Data frame with columns 'rep' and 'estimates' where 'estimates' is a list of tibble output results from either iptw_pipeline(), ice_pipeline(), or or_pipeline().

estimates_truth

Data frame with columns 't' and 'estimate', with the 'true' value of E(Y_t(a)-Y_t-1(a)) for t=1,...,T

conf_level

num. level of confidence, e.g. .95 is a 95% confidence interval

Value

data frame with coverage estimates


audreyrenson/didgformula documentation built on Oct. 9, 2022, 11:45 a.m.