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 add average treatment effect line in event study plotDear community, I want to add the average treatment effect (and confidence interval) when plotting …
HH to individual levelHello, In the survey I'm using, I have information on time taken to collect water by women in a HH a…
New package: rowsumHi Everyone, I write a new package called "rowsum" (my first package : ). It sums the values of mul…
Where to find globdist.adoI am reading a Stata do file which was probably authored before 2015. It uses globdist. I tried "fi…
Number of one variable according to two other variablesHi Dears, My datset includes Firms identification: NPC_FIC, Classification by broad economic catego…
Subscribe to:
Post Comments (Atom)
0 Response to Help with R squared in Cox model with shared frailty
Post a Comment