Skip to contents

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.

Usage

simRecomputeSummary(
  output.dir = "resiBootSim",
  alpha = 0.05,
  fixed.knots = FALSE
)

Arguments

output.dir

Character, directory containing simulation output. Default "resiBootSim".

alpha

Numeric, CI significance level used in the original simulation. Default 0.05.

fixed.knots

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.

Value

Invisibly returns the updated summary data.frame. Overwrites output.dir/summary_table.rds.

Details

True RESI values are re-estimated from the full insurance dataset using the same formulae and variance functions as the original simulation.