Description Usage Arguments Examples
View source: R/initial_SL_fit.R
generate data.frame to be used in survtmle package
1 | makeDataList(dat, J, nZ, Z, t0, bounds = NULL)
|
dat |
a data.frame with columns named: id = unique subject id T.tilde = (possibly censored) failure time Delta.J= (possible censored) failure type – can set all to 1 if no censoring Z = binary treatment indicator W = other columns for baseline variables |
J |
the unique positive values of dat$Delta.J (set J=1 if only one type of failure) |
nZ |
set to length of unique(dat$Z) |
Z |
the treatment values that are of interest (e.g., Z=c(0,1)) |
t0 |
the time point you eventually want predictions at |
bounds |
just leave NULL |
1 | # TO DO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.