% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stepwise.R
\name{stepwise_trace}
\alias{stepwise_trace}
\title{Extract the captured console trace from an \code{hzr_stepwise} fit}
\usage{
stepwise_trace(fit)
}
\arguments{
\item{fit}{An \code{hzr_stepwise} object.}
}
\value{
Character vector, one element per console line.
}
\description{
Every run of \code{\link[=hzr_stepwise]{hzr_stepwise()}} records the header, per-step lines,
and final summary regardless of the \code{trace} flag.  This accessor
returns the full character vector for display or logging.
}
\examples{
data(avc)
avc <- na.omit(avc)
base <- hazard(survival::Surv(int_dead, dead) ~ age,
               data = avc, dist = "weibull", fit = TRUE)
\donttest{
sw <- hzr_stepwise(base, scope = ~ age + nyha,
                   data = avc, direction = "forward",
                   control = list(n_starts = 1))
cat(stepwise_trace(sw), sep = "\n")
}
}
