% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulations.R
\name{simRecomputeSummary}
\alias{simRecomputeSummary}
\title{Recompute Summary Table from Raw Simulation Output}
\usage{
simRecomputeSummary(
  output.dir = "resiBootSim",
  alpha = 0.05,
  fixed.knots = FALSE
)
}
\arguments{
\item{output.dir}{Character, directory containing simulation output.
Default \code{"resiBootSim"}.}

\item{alpha}{Numeric, CI significance level used in the original simulation.
Default 0.05.}

\item{fixed.knots}{Logical. Must match the value used in the original
\code{\link{insurancePlasmodeSim}} call so that the true RESI values are
computed from the same model formula. Default \code{FALSE}.}
}
\value{
Invisibly returns the updated summary \code{data.frame}.
  Overwrites \code{output.dir/summary_table.rds}.
}
\description{
Reads the per-replicate raw \code{.rds} files saved by
\code{\link{insurancePlasmodeSim}} and recomputes the summary metrics table
(bias, MSE, coverage, upper_coverage, lower_coverage, width).  Use this
whenever \code{.simComputeMetrics} has been updated (e.g. new metrics added)
without needing to rerun the full simulation.
}
\details{
True RESI values are re-estimated from the full \code{\link{insurance}} dataset
using the same formulae and variance functions as the original simulation.
}
\seealso{
\code{\link{insurancePlasmodeSim}}, \code{\link{simFigures}}
}
