I am doing a project where I need to create a KM curve for "freedom from heart arrhythmias at 1, 3, and 5 years post heart surgery" (where everyone in the dataset HAS had the surgery)
I've set up and my graph and felt like it was correct (Code and graph below)
However, when I sent it over to my boss, he said the numbers from last time this was done do not match up.
I've racked my brain and played around a lot with proc lifetest, but my numbers don't change too much no matter how I look at it.
Does anyone else know what variables COULD change survival rates in this scenario? Brainstorming ideas welcome. Because I feel like I've frankly tried everything short of just having my code be disastrously wrong.
My numbers, survival at:
1 year: 94%
3 years: 60%
5 years: 25%
My bosses numbers:
1 year: 84%
3 years: None
5 years: 64%
My variables:
abnormal heart beat after surgery Y (1) / N (0) = Rec_AF
Living Status Alive (1) / Dead (0) ** with those who had the event coded as 0) = Status
Follow up time = tot.fu
(variables in data set now used: Gender, age at last FU, time interval till patient had event, type of event, )
ods graphics on / attrpriority=color; ods output survivalplot=survplot; run; proc lifetest data=hp.maze_database conftype=loglog plots=survival timelist=(1 3 5) outs=surv_rate reduceout alpha=.05; time tot_fu*Status(0); title "AF recurrance after MAZE" ; run; proc sgplot data=survplot noborder nowall; step x=time y=survival / lineattrs=(color=darkblue thickness=2); xaxis label='Years post Maze' values=(0 to 5 by 1) labelattrs=(size=13 weight=bold); yaxis label='Proportion Who have AF recurrence' values=(0 to 1.0 by 0.2) ; run;
You say, "My bosses numbers:"
1 year: 84%
3 years: None
5 years: 64%
Please ask your boss how 64% survived after 5 years when there were zero survivors after 3 years. Survival curves are nonincreasing functions, so either your boss is confused, or you misheard your boss, or you are using different definitions.
You say, "My bosses numbers:"
1 year: 84%
3 years: None
5 years: 64%
Please ask your boss how 64% survived after 5 years when there were zero survivors after 3 years. Survival curves are nonincreasing functions, so either your boss is confused, or you misheard your boss, or you are using different definitions.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.