Dear all
I have the following data set titled "EyeSurgery"
The data contains 3000 IDs of patients. The variables are listed below with an example of the first 5 rows.
ID LeftEyeangle RightEyeAngle LeftEyeSurgery RightEyeSurgery LeftTimeToOp RightTimeToOp
1 acute Neutral 1 0 8 -
2 acute acute 1 0 24 -
3 obtuse acute 1 1 15 38
4 obtuse neutral 0 1 18 19
5 neutral neutral 0 0 - -
I am trying to calculate/draw a patient-matched survival analysis curve of "Acute" vs "Obtuse" vs "Neutral" using Cox Proportional Hazards Model. As it is patient-matched(each patient has 2 eye angles), there will be multiple survival curves analysis as the analysis will have to be somehow split into 4 groups "Acute vs Neutral", "Obtuse vs Neutral" and "Acute vs Obtuse" and "Neutral vs Neutral".
My code is :
stset LeftTimeToOp RightTimeToOp, failure(LeftEyeSurgery==1, RightEyeSurgery==1)
stcox, estimate
But this does not seem to work
Would be incredibly grateful if anybody can assist with this issue? It may be a case of reorgansing the data but not sure how to run a mutiple variable survival analysis.
Many thanks in advance
Related Posts with Multiple cox regression models code
New version of wridit on SSCThanks as always to Kit Baum, a new version of the wridit package is now available for download from…
mrgraph error - variables R _variables do not uniquely identify the observationsI am trying to get a graph for a multiple response question. I have read the resource and the mrtab …
gtfpch and teddf - Malmquist–Luenberger productivity indexHi I have been trying to use the gtfpch command in STATA 17, but I am continually returning the sam…
Comparing two CoefficientsHello there, i have split my sample into two parts and ran a fe regression for both of them. is it…
Running time for QUAIDSHi, I'm currently running QUAIDS estimation for 300K households and 215 food items. I wonder how lon…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple cox regression models code
Post a Comment