% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/likelihood-multiphase.R
\name{.hzr_logl_multiphase}
\alias{.hzr_logl_multiphase}
\title{Log-likelihood for multiphase additive hazard model}
\usage{
.hzr_logl_multiphase(
  theta,
  time,
  status,
  time_lower = NULL,
  time_upper = NULL,
  x = NULL,
  weights = NULL,
  phases,
  covariate_counts,
  x_list,
  return_gradient = FALSE,
  return_hessian = FALSE,
  ...
)
}
\arguments{
\item{theta}{Full parameter vector (internal scale).}

\item{time}{Numeric vector of follow-up times (n).}

\item{status}{Numeric event indicator: 1 = event, 0 = right-censored,
-1 = left-censored, 2 = interval-censored.}

\item{time_lower}{Optional lower bounds for interval censoring.}

\item{time_upper}{Optional upper bounds for left/interval censoring.}

\item{x}{Design matrix (unused directly; kept for interface compatibility).}

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

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

\item{x_list}{Named list of per-phase design matrices.}

\item{return_gradient}{Logical (ignored; gradient via separate function).}

\item{return_hessian}{Logical (ignored).}

\item{...}{Ignored.}
}
\value{
Scalar log-likelihood. Returns -Inf for infeasible parameters.
}
\description{
Log-likelihood for multiphase additive hazard model
}
\keyword{internal}
