Description Usage Arguments Value Author(s) See Also
Generates incidence sample for discrete survival data. Uses output from create.discrete()
or user must match the naming structure. For each event, a random sample from the risk set at the same time window is selected.
1 2 | incidenceSample(long.DATA, n.controls = 1)
createDiscrete(time, event, dataX, delta.upper = NULL, n.delta=100)
|
long.DATA |
output from |
n.controls |
Number of randomly sampled observations. If set to 0, the function returns the entire long.DATA data frame. |
time |
follow-up time |
event |
event indicator |
dataX |
data.frame with covariates |
delta.upper |
used to pass in already defined time windows |
n.delta |
number of time windows |
Returns a data frame containing the subsample
Eric C Polley ecpolley@berkeley.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.