estimate_bias_variance: Estimate the bias and variance of DID g-formula estimators

View source: R/summary_functions.R

estimate_bias_varianceR Documentation

Estimate the bias and variance of DID g-formula estimators

Description

Estimate the bias and variance of DID g-formula estimators

Usage

estimate_bias_variance(results_df, estimates_truth)

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

Value

data frame with bias and variance estimates


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