Learn R Programming

spect (version 1.0)

create_person_period_data: 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)

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.

Arguments

individual_data

A survival data set.

bounds

Output from the `generate_bounds` function of this package.

Author

Stephen Abrams, stephen.abrams@louisville.edu

See Also

[generate_bounds()], [spect_predict()], [create_training_data()]