% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/likelihood-multiphase.R
\name{.hzr_multiphase_cumhaz}
\alias{.hzr_multiphase_cumhaz}
\title{Compute total cumulative hazard H(t|x) for multiphase model}
\usage{
.hzr_multiphase_cumhaz(
  time,
  theta,
  phases,
  covariate_counts,
  x_list,
  per_phase = FALSE
)
}
\arguments{
\item{time}{Numeric vector of times (n).}

\item{theta}{Full parameter vector (internal scale).}

\item{phases}{Named list of validated \code{hzr_phase} objects.}

\item{covariate_counts}{Named integer vector of covariate counts per phase.}

\item{x_list}{Named list of design matrices, one per phase. Each element is
an n x p_j matrix or NULL.}

\item{per_phase}{Logical; if TRUE return a list with total and per-phase
contributions.}
}
\value{
If \code{per_phase = FALSE}: numeric vector of length n (total H(t|x)).
If \code{per_phase = TRUE}: named list with \verb{$total} and one element per phase.
}
\description{
Compute total cumulative hazard H(t|x) for multiphase model
}
\keyword{internal}
