Dear all ,
I am working with a large data-set of 6000 subjects.
I would like to perform Restricted Cubic Spline analysis to calculate the hazards ratio's for an event (in this case stroke) along an entire spectrum of 1 continuous variable.
I was able to place knots according to 5 percentiles for this continuous variable, however the calculated hazards ratio's seems way off?
Could anybody help me with what I am doing wrong? Also, how do you draw a graph coming from this if the results would have been correct?
This is the code I am currently using....
rc_spline MV_MeanGradient, nknots (5)
stset T2CVA_sensorMVsurgWithout0, failure(outcome_cva==1)
stcox _S*
many thanks in advance!
I am working with a large data-set of 6000 subjects.
I would like to perform Restricted Cubic Spline analysis to calculate the hazards ratio's for an event (in this case stroke) along an entire spectrum of 1 continuous variable.
I was able to place knots according to 5 percentiles for this continuous variable, however the calculated hazards ratio's seems way off?
Could anybody help me with what I am doing wrong? Also, how do you draw a graph coming from this if the results would have been correct?
This is the code I am currently using....
rc_spline MV_MeanGradient, nknots (5)
stset T2CVA_sensorMVsurgWithout0, failure(outcome_cva==1)
stcox _S*
many thanks in advance!
Comment