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
Using eydx to calculate percentage difference in Y in difference-in-difference-analysis for men and womenHi everybody I am conducting a DID-analysis. Among other things, I am looking to see how a treatmen…
Local variable list macro is giving errorHi everyone, I am trying to use the local macro to define few variables in a group i.e. local A va…
Conditioning on value of first year for each country in unbalanced panel dataHi all! I have country/year panel data. I would like to drop some observations according to specifi…
Which analysis to use for three repeated measures binary outcomeI'm working on a panel survey. I have a binary y dependent variable measured three times, once befor…
Network meta-analysis from precomputed effect sizeCould I do a network meta-analysis, if I had only the hazard ratio from each article (did not have e…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with predicting survival probabilities from stpm2 model with TVC in external data
Post a Comment