% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/likelihood-multiphase.R
\name{.hzr_select_fixmu_phase}
\alias{.hzr_select_fixmu_phase}
\title{Select the phase whose log_mu will be solved by conservation}
\usage{
.hzr_select_fixmu_phase(
  theta,
  time,
  status,
  phases,
  covariate_counts,
  x_list,
  weights = NULL
)
}
\arguments{
\item{theta}{Full parameter vector (internal scale).}

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

\item{status}{Numeric event indicator.}

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

\item{covariate_counts}{Named integer vector.}

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

\item{weights}{Optional numeric vector of row weights (length n). Defaults to
unit weights. Applied when summing per-phase cumhaz so that selection
happens on the same scale as the (weighted) observed event count.}
}
\value{
Character: name of the phase to fix.
}
\description{
Chooses the phase contributing the largest share of total cumulative
hazard, matching the C HAZARD SETCOE strategy.
}
\keyword{internal}
