i am developing a flexible parameteric model in R using the stpm2 function in r and I am not sure how to calculate the linear predictor and also the risk score for each individual in my dataset after developing the model
The code for developing the model is
<code>
model <- stpm2(Surv(time, status == 1) ~ age + bmi + sex, data = dataset_name)
</code>
<code>
model <- stpm2(Surv(time, status == 1) ~ age + bmi + sex, data = dataset_name)
</code>
model <- stpm2(Surv(time, status == 1) ~ age + bmi + sex, data = dataset_name)
I would like to calculate the linear predictor and risk scores at 2 years and 5 years for each individual.