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
RobustDear Statalists! I am running a FE regression in stata using the command xtreg y x, fe. I was wonde…
Assesing the impact of vaccine over timeHow can I asses the impact of intervention overtime(particularly PCV10), We had analysed effect PCV1…
Verify Fixed Effects resultsDear Statalists, I did a fixed-effects analysis and obtained the expected significant results. Then…
Event StudyCan I get the event study video tutorial or commands along with data files, such as, firm data, mark…
🛂 Stata errorsDear All, the following section of the manual contains the error codes that Stata may issue: https:…
Subscribe to:
Post Comments (Atom)
0 Response to Help with R squared in Cox model with shared frailty
Post a Comment