I have built a prognostic model using stpm2 which includes a tvc (all covariates in model are centered, Sb variables are restricted cubic splines). The model is intended for clinical use which will involve generating survival probabilities at 2 and 5 years for individual patients.
Is it possible to calculate/predict survival probabilities in external data for a stpm2 model including a tvc?
I am having problems re-creating the tvc element of the model.
Many thanks in advance.
Kind regards
Anita
stset survtime, failure(iT==1) scale(12) id(ID)
stpm2 Pred_A_cent Sb1 Sb3 Sb2 Sb4 Pred_Hb_cent , tvc(Pred_Hb_cent) knotstvc(Pred_Hb_cent 5) scale(normal) df(3) noorthog
Coefficients from output table -
xb
Pred_A_cent -0.0223022 .
Sb1 -0.0196823
Sb3 0.0813105
Sb2 -0.0655064
Sb4 -0.0227443
Pred_Hb_cent 0 .0171128
_rcs1 0 .247728
_rcs2 0.14239
_rcs3 -0.3269927
_rcs_Pred_Hb_cent1 0. 0021463
_rcs_Pred_Hb_cent2 0.0003087
_cons -2.574488
Related Posts with Problem with predicting survival probabilities from stpm2 model with TVC in external data
Creating a dummy based on a combinationHi all, I am trying to create a dummy variable based on the particular combination of two other dum…
Seeking a way to examine the sensitivity of one variable with respect to another (both a time series)Hi, this maybe a very rookie question, but many thanks for any help. I have a data like this Sta…
Name variableHello, I have a dataset with a variable called "Country". I would like to know the code to know the…
MRS/WTP estimation with effects-coded mixlogitHi, does anyone have advice on using effects-coded model for MRS/WTP estimation in DCE. Assuming I …
Panel data - dropping all observations after a switchHi everyone, I have panel data below (just one id shown), it is sorted by id and date I want to be …
Subscribe to:
Post Comments (Atom)
0 Response to Problem with predicting survival probabilities from stpm2 model with TVC in external data
Post a Comment