% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim-pc-hazard.R
\name{rchazl}
\alias{rchazl}
\title{Multiple Cause Piecewise Constant Hazard Simulation}
\usage{
rchazl(cumhaz, rr, causes = NULL, ...)
}
\arguments{
\item{cumhaz}{List of cumulative hazard matrices, one for each cause.}

\item{rr}{Matrix of relative risks (rows = subjects, columns = causes).}

\item{causes}{Vector of cause codes to assign (default NULL, uses 1,2,...).}

\item{...}{Additional arguments passed to \code{rchaz}.}
}
\value{
A data frame with event times and status indicating the cause of the first event.
}
\description{
Simulates data from multiple piecewise constant baseline hazards for competing risks. 
Takes the minimum of all cause-specific event times and assigns the corresponding cause.
}
\seealso{
\code{\link{rchaz}}
}
\author{
Thomas Scheike
}
