35 lines
1.2 KiB
R
35 lines
1.2 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/cr_components.R
|
|
\name{CR_ResponseCombiner}
|
|
\alias{CR_ResponseCombiner}
|
|
\title{Competing Risk Response Combiner}
|
|
\usage{
|
|
CR_ResponseCombiner(events)
|
|
}
|
|
\arguments{
|
|
\item{events}{A vector of integers specifying which competing risks event
|
|
functions should be processed. This should correspond to all of the
|
|
competing risk events that can occur, from 1 to the largest number.}
|
|
}
|
|
\description{
|
|
Creates a CompetingRiskResponseCombiner rJava object, which is used
|
|
internally for constructing a forest. It is used when each tree in the forest
|
|
is constructed, as it combines response level information (u & delta) into
|
|
functions such as cumulative incidence curves, cause-specific cumulative
|
|
hazard functions, and an overall Kaplan-Meier curve. This combination is done
|
|
for each terminal node for each tree.
|
|
}
|
|
\details{
|
|
The user only needs to pass this object into \code{\link{train}} as the
|
|
\code{nodeResponseCombiner} parameter.
|
|
}
|
|
\examples{
|
|
T1 <- rexp(1000)
|
|
T2 <- rweibull(1000, 1, 2)
|
|
C <- rexp(1000)
|
|
|
|
u <- round(pmin(T1, T2, C))
|
|
# ...
|
|
|
|
forestCombiner <- CR_ResponseCombiner(1:2) # there are two possible events
|
|
}
|