% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desc_utils.R
\name{process_survival}
\alias{process_survival}
\title{Process time-to-event variable}
\usage{
process_survival(
  data,
  var,
  var_label,
  group_var,
  digits,
  conf_level = 0.95,
  na_include,
  na_label,
  test,
  total,
  total_label,
  marks = NULL,
  ...
)
}
\arguments{
\item{data}{Data.table containing the survival variables.}

\item{var}{Character string with Surv() expression (\emph{e.g.,} "Surv(time, status)").}

\item{var_label}{Character string label for display.}

\item{group_var}{Optional character string naming the grouping variable.}

\item{digits}{Integer number of decimal places.}

\item{conf_level}{Numeric confidence level for confidence intervals.}

\item{na_include}{Logical whether to include missing values.}

\item{na_label}{Character string label for missing values.}

\item{test}{Logical whether to perform log-rank test.}

\item{total}{Logical or character controlling total column display.}

\item{total_label}{Character string label for total column.}

\item{...}{Additional arguments (currently unused).}
}
\value{
List with 'formatted' and 'raw' data.table components.
}
\description{
Calculates survival statistics including median survival times with
confidence intervals, with optional grouping and log-rank testing. Parses
Surv() expressions and uses \pkg{survival} package functions.
}
\keyword{internal}
