makeDataList: generate data.frame to be used in survtmle package

Description Usage Arguments Examples

View source: R/initial_SL_fit.R

Description

generate data.frame to be used in survtmle package

Usage

1
makeDataList(dat, J, nZ, Z, t0, bounds = NULL)

Arguments

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

Examples

1
# TO DO

wilsoncai1992/onestep.survival documentation built on Dec. 17, 2017, 12:07 p.m.