% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hazard_api.R
\name{.hzr_as_design_matrix}
\alias{.hzr_as_design_matrix}
\title{Coerce x to a validated numeric design matrix}
\usage{
.hzr_as_design_matrix(x, n = NULL)
}
\arguments{
\item{x}{A numeric matrix or data frame with numeric columns.}

\item{n}{Expected row count (length of time/status vectors); checked if non-NULL.}
}
\value{
A numeric matrix with column names preserved (or added if absent).
}
\description{
Accepts data.frame or numeric matrix input; validates dimensions and
finiteness.  Called by hazard() to normalise the x argument before any
downstream use.
}
\keyword{internal}
