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
Superscript and subscriptDear Stata users, I have a variable with both superscript and subscript. When I wrote both superscr…
Piecewise multilevel modellingHi All, I am trying to do piecewise multilevel modelling for a continuous outcome (say pain score) a…
Comparison of predicted values after OLS regressionDear all, I am interested in predicted values after an OLS regression. Moreover, I am curious how t…
How to run a Mantel-Haenszel for 2*j tableDear Users, I am looking at the impact of 4 different treatments on recovery (yes/no) using data fr…
Reshaping Datastream DataHello community. first of all I would like to thank you for the inclusion in this really instructive…
Subscribe to:
Post Comments (Atom)
0 Response to Help with R squared in Cox model with shared frailty
Post a Comment