Generates modeling data from a person-period data set.
create_training_data(person_period_data, time_col, event_col, cens)A discrete-time data set suitable for training using any binary classifer.
A discrete-time data set. Generally, this will be output from the `create_person_period_data` function.
A string specifying the name of the column which contains the survival time.
A string specifying the name of the column which contains the event indicator.
Specifies how to apply censored data. Valid values are "same" - considers censorship to occur in the same interval as the survival time, "prev" - considers censorship to occur in the prior interval, and "half" - considers censorship to occur in the same interval as survival time if the individual survived for at least half of that interval.
Stephen Abrams, stephen.abrams@louisville.edu
[create_person_period_data()]