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
Import oaxaca result in latexCould you please share me a stata code to import Oaxaca result in latex. I examine the wage gap amon…
Mixed logit modelsI'm interested to develop a mixed logit model for crash injury severity. My response variable is "in…
Changing from Inflation % from previous year to Change to Inflation RateHi, I managed to gather data for inflation from the IMF but its measure is (Prices, Consumer Price …
Combining two matrices in one VariableDear all, my university is using the Stata version with max matsize = 800. I am working with a data…
What is the Stata command to generate a variable that would take the initial value of the other variable?Dear all, I have panel covering the period 1970-2010 with country-year being the unit of analysis. …
Subscribe to:
Post Comments (Atom)
0 Response to Multiple cox regression models code
Post a Comment