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
Unifying country names when merging dataI have data from different sources, some use names for a country and other sources use different nam…
Sargan's criteriaHi, I want to calculate Sargan's criteria (S) to choose between two alternative equations (1 and 2)…
Counting Occurrences X Years Before Each ObservationHi everyone, I am relatively new to stata. For my thesis, I am working on a dataset that lists paten…
ICD10 with multiple variablesHi, I am relatively new to Stata so apologies if this is a basic question but I hope someone can he…
Conflicting results - xtsktest and jb -Hello everyone, I apologize in advance in case this is a silly questions but I could not find enligh…
Subscribe to:
Post Comments (Atom)
0 Response to Help with R squared in Cox model with shared frailty
Post a Comment