create_person_period_data {spect} | R Documentation |
Generates person-period data for any data set, given the bounds defined by the training set.
Description
Generates person-period data for any data set, given the bounds defined by the training set.
Usage
create_person_period_data(individual_data, bounds)
Arguments
individual_data |
A survival data set. |
bounds |
Output from the 'generate_bounds' function of this package. |
Value
A data set consisting of the original 'individual_data' repeated once for each interval defined by the 'bounds' parameter. Each row will be labeled with an id and an interval. The output of this function can be passed to either 'create_training_data' or 'spect_predict' to genreate modeling data or predictions respectively.
Author(s)
Stephen Abrams, stephen.abrams@louisville.edu
See Also
[generate_bounds()], [spect_predict()], [create_training_data()]
[Package spect version 1.0 Index]