% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simstudy.R
\name{htdv_simstudy_summary}
\alias{htdv_simstudy_summary}
\title{Aggregate a Simulation-Study Output}
\usage{
htdv_simstudy_summary(res, alpha = 0.05)
}
\arguments{
\item{res}{Data frame returned by \code{htdv_simstudy}.}

\item{alpha}{Nominal size used in the study (must match what
\code{htdv_simstudy} was called with).}
}
\value{
A data frame with one row per (cell, layer) and columns
\code{n, phi, tail, imb, delta, layer, n_reps, reject_rate, coverage,
mean_ci_length, mean_runtime, diag_pass_rate}.
}
\description{
Computes empirical size (or rejection rate), coverage, and mean interval
length per (cell x layer) from the raw output of \code{\link{htdv_simstudy}}.
}
\examples{
\donttest{
res <- htdv_simstudy(n_grid = c(40), phi_grid = c(0.3),
                     tail_grid = "normal", imb_grid = 1,
                     delta_grid = c(0, 0.3), R = 5,
                     layers = c("har"))
htdv_simstudy_summary(res)
}

}
