simRecomputeSummary: Recompute Summary Table from Raw Simulation Output

simRecomputeSummaryR Documentation

Recompute Summary Table from Raw Simulation Output

Description

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.

Details

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

Value

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

See Also

insurancePlasmodeSim, simFigures


RESI documentation built on July 25, 2026, 1:07 a.m.