# G = 50 keeps the example quick; a reported analysis deserves the
# default G of 1000. First the well-specified case: the planner used an
# error variance of 4, and the truth is 4.
set.seed(113)
ss_aipe_c_sensitivity(
true_error_variance = 4,
estimated_error_variance = 4,
c_weights = c(-1, 0, 1),
width = 1, G = 50, print_iter = FALSE
)
# Misspecified: planner used 4, truth is 9. Realized widths inflate.
set.seed(113)
ss_aipe_c_sensitivity(
true_error_variance = 9,
estimated_error_variance = 4,
c_weights = c(-1, 0, 1),
width = 1, G = 50, print_iter = FALSE
)
Run the code above in your browser using DataLab