Hi all,
I am fitting a Cox model with shared frailty and I hope to get the (pseudo) R squared for my model. Here is my code:
stcox x1 x2 x3 x4, shared(ID)
display e(r2_p)
Nothing comes out.
However, if I take out the shared command, I can get an output of (pseudo) R squared.
stcox x1 x2 x3 x4
display e(r2_p)
.05290264
Can anyone help with this problem? Is it even possible to get the (pseudo) R squared in a Cox model with shared frailty?
Thanks!
Jasmine
Related Posts with Help with R squared in Cox model with shared frailty
How to keep first record but drop missing in longHI all, I have a dataset in long-format and would like to drop information so that I can just keep …
Weighting European Social SurveyHello everyone, Does anyone here know when to use each weight in the European Social Survey? I'm us…
Omitted values while doing regression with fixed effectsStatalist forum, I am trying to do 4 regression models with fixed effects. However, when I run the …
Coefficient of the interaction term of AFT modelDear Statalist, I have a question about the explanation of coefficients of interactions terms of the…
error using etpoissonHi, I was reviewing the example in the Treatment Effects user guide on page 68 where it uses the fo…
Subscribe to:
Post Comments (Atom)
0 Response to Help with R squared in Cox model with shared frailty
Post a Comment