riskScore | R Documentation |
Calcutes dynamic risk score at a time for an individual (helper to predLMrisk)
riskScore(model, tLM, data, func_covars, func_LMs)
model |
A coxph object |
tLM |
Landmarking time point at which to calculate risk score (time at which the prediction is made) |
data |
Dataframe (single row) of individual. Must contain the original covariates. |
func_covars |
A list of functions to use for interactions between LMs and covariates. |
func_LMs |
A list of functions to use for transformations of the landmark times. |
Numeric risk score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.