% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process_model_helpers.R
\name{compute_tau_limit}
\alias{compute_tau_limit}
\title{Compute Tau Limit (t_max)}
\usage{
compute_tau_limit(times, threshold)
}
\arguments{
\item{times}{Numeric vector of survival times.}

\item{threshold}{Minimum proportion of subjects that must remain at risk.}
}
\value{
The computed \eqn{t_{max}} value, or \code{NA_real_} if no valid
  times are provided.
}
\description{
Finds the latest time point \eqn{t_{max}} such that at least a certain proportion
of subjects remain at risk.
}
\keyword{internal}
