predictALARM | R Documentation |
Makes predictions for the absolute risk of lung cancer mortality for never and ever smokers, based on a set of covariates, at a chosen time horizon.
predictALARM(data, time = 5, ...)
data |
Data frame containing covariate values at which to produce
absolute risk predictions. See |
time |
Time horizon at which to make predictions. |
... |
Not currently used. |
A data.frame
with same number of rows as newdata
, and in the
same order. The data.frame
will contain the original columns plus the
added column ALARM_pred
, which is the predicted absolute risk of lung
cancer mortality at time time
.
validate_data()
data <- data.frame(age = 70, sex = 1, fhx_cancer = 1,
phx_cancer = 0, fev1fvc = 70, phx_lungdx = 1,
hhinc = 3, bmi = 30,
smk_status = c(1, 2), smk_duration = c(NA, 40),
smk_cigpday = c(NA, 20))
predictALARM(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.