scan.predict {nhs.predict} | R Documentation |
scan.predict
Description
Calculates 'NHS Predict' v2.1 Overall survival and chemotherapy benefits in a simplified version with fewer inputs, suited for SCAN audit.
Usage
scan.predict(data, age.start)
Arguments
data |
A dataframe containing patient data with the necessary variables.Except for age at diagnosis, the other variables must be named according to SCAN |
age.start |
Numeric, Age at diagnosis of the patient. Range between 25 and 85. |
Value
The function attaches additional columns to the dataframe, matched for patient observation, containing Overall survival at the specified year, plus the additional benefit for chemotherapy at 5, 10, and 15 years interval. Observations containing missing values are moved to the bottom.
Examples
data(scan_example_data)
scan_example_data <- scan.predict(scan_example_data, age.start = diag_age)
[Package nhs.predict version 1.4.0 Index]