Reads the per-replicate raw .rds files saved by
insurancePlasmodeSim and recomputes the summary metrics table
(bias, MSE, coverage, upper_coverage, lower_coverage, width). Use this
whenever .simComputeMetrics has been updated (e.g. new metrics added)
without needing to rerun the full simulation.
simRecomputeSummary(
output.dir = "resiBootSim",
alpha = 0.05,
fixed.knots = FALSE
)Invisibly returns the updated summary data.frame.
Overwrites output.dir/summary_table.rds.
Character, directory containing simulation output.
Default "resiBootSim".
Numeric, CI significance level used in the original simulation. Default 0.05.
Logical. Must match the value used in the original
insurancePlasmodeSim call so that the true RESI values are
computed from the same model formula. Default FALSE.
True RESI values are re-estimated from the full insurance dataset
using the same formulae and variance functions as the original simulation.
insurancePlasmodeSim, simFigures