% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival.R
\name{h_events_table}
\alias{h_events_table}
\title{Prepare Events Table}
\usage{
h_events_table(data, vars)
}
\arguments{
\item{data}{(\code{data.frame}) The data frame containing the survival data.}

\item{vars}{(\code{list}) A list containing the treatment, time, status, and strata variables.}
}
\value{
A data frame with columns for the treatment, strata, number of patients, and number of events.
}
\description{
This function creates a data frame summarizing the number of patients and events
for each treatment arm and stratification factor.
}
\keyword{internal}
