create_training_data {spect} | R Documentation |
Generates modeling data from a person-period data set.
Description
Generates modeling data from a person-period data set.
Usage
create_training_data(person_period_data, time_col, event_col, cens)
Arguments
person_period_data |
A discrete-time data set. Generally, this will be output from the 'create_person_period_data' function. |
time_col |
A string specifying the name of the column which contains the survival time. |
event_col |
A string specifying the name of the column which contains the event indicator. |
cens |
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. |
Value
A discrete-time data set suitable for training using any binary classifer.
Author(s)
Stephen Abrams, stephen.abrams@louisville.edu
See Also
[create_person_period_data()]