C++ function to estimate the baseline hazard from a Cox Model
baseHaz_cpp(
starttimes,
stoptimes,
status,
eXb,
strata,
predtimes,
emaxtimes,
nPatients,
nStrata,
cause,
Efron
)
a vector of times (begin at risk period).
a vector of times (end at risk period).
a vector indicating censoring or event.
a numeric vector (exponential of the linear predictor).
a vector of integers (index of the strata for each observation).
a vector of times (time at which to evaluate the hazard). Must be sorted.
another vector of times, one per strata (last observation time in each strata).
number of observations.
number of strata
the status value corresponding to event.
whether Efron or Breslow estimator should be used in presence of ties.
WARNING stoptimes status eXb and strata must be sorted by strata, stoptimes, and status