expprep2 | R Documentation |

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 line |

`y` |
follow-up time for each individual (same length as nrow(x)) |

`ratetable` |
rate table used for calculation |

`status` |
status for each individual (same length as nrow(x)!), not needed if we only need Spi, status needed for rs.surv |

`times` |
times at which we wish to evaluate the quantities, not needed if we only need Spi, times needed for rs.surv |

`fast` |
for mpp method only |

`ys` |
entry times (if empty, individuals are followed from time 0) |

`prec` |
deprecated |

`cmp` |
should cmpfast.C be used |

`netweiDM` |
should new netwei script be used |

Helper function used in rs.surv and other relsurv functions.

List containing the calculated hazards and probabilities using the population mortality tables.

rs.surv

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.