Description Usage Arguments Value Examples
Convert data.frame into a data.frame of artificial Poisson data with the interpolated Time varying covariate values
1 2 3 4 5 6 7 8 |
dat |
A data.frame |
event |
Name for Poisson response |
et |
Name of event time |
t |
Name of observation time |
status |
Numeric 1 for death 0 otherwise |
id |
Patient id |
A data.frame of artificial Poisson data
1 2 3 | library(survival)
pbcseq$status1 <- as.numeric(pbcseq$status==2) ## deaths
pb <- tdpois(pbcseq) ## conversion
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.