Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
185 views
in Technique[技术] by (71.8m points)

Survival time for a specific range within the data

Survival at given time-points Dear all who possessed greater geek-power than I.

Im putting together a survival analysis of a group of patients submitted to an intervention. Then after 365 days of follow-up I examine the mortality.

AND I wish to do so at given time ranges 0:30 days 30:90 days 90:180 days and 180:365 days

Id like to end up with a p-value testing the difference between the two groups survival

I cannot for the life of me figure out how to do this. I have tried with both survfit and prodlim but the force is to strong on the dark side.

Survfit:

fit1 <- survfit( Surv(futime,fustat)~intervention, data=ASAP )

Prodlim:

fit2 <- prodlim(Hist(futime,fustat)~intervention,data=ASAP)

I searched around but did not manage to find answers I understood. With prodlim I managed to get the p-value (for the entire 365 days) printed on the plot (big win) but failed to anymore.

Im sure this I noob stuff, but IDK.

question from:https://stackoverflow.com/questions/65837726/survival-time-for-a-specific-range-within-the-data

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...