Rank: 210090 based on 0 downloads (last 30 days) and 0 file submitted
photo

Jan liphardt

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Jan liphardt
Updated File Comments Rating
09 May 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo

Very useful, but I had two questions. (1) LogRank gives an error at line 116, at [table1 table12 t1 T1 xcg1 ycg1 lambda1]=kmplot(x1,0.05,cflag,0);
This is fixed by deleting the last arg to kmplot, giving kmplot(x1,0.05,flag);

2) The p-value for LogRank is twice what it should be? 0.03058 vs. 0.01529 in the file header. Perhaps, mismatch between old documentation and changed function, or extra factor of 2 in p = 2*(1-0.5*erfc(-z/realsqrt(2))); %p-value

Removing Yates' gives 0.019250, which is correct. I tend to think 0.03058 is correct, with the Yates' correction. Thanks for the super-useful code!

Contact us