expprep2 function
Helper calculation function using C code. Saved also as exp_prep (unexported function).
expprep2( x, y, ratetable, status, times, fast = FALSE, ys, prec, cmp = F, netweiDM = FALSE )
x
: matrix of demographic covariates - each individual has one liney
: follow-up time for each individual (same length as nrow(x))ratetable
: rate table used for calculationstatus
: status for each individual (same length as nrow(x)!), not needed if we only need Spi, status needed for rs.survtimes
: times at which we wish to evaluate the quantities, not needed if we only need Spi, times needed for rs.survfast
: for mpp method onlyys
: entry times (if empty, individuals are followed from time 0)prec
: deprecatedcmp
: should cmpfast.C be usednetweiDM
: should new netwei script be usedList containing the calculated hazards and probabilities using the population mortality tables.
Helper function used in rs.surv and other relsurv functions.
rs.surv
Useful links