clear all
close all

% This m-file is using MATLAB Central File Exchange
% kmplot: 
% (http://www.mathworks.com/matlabcentral/fileexchange/22293).
% log rank test:
% (http://www.mathworks.com/matlabcentral/fileexchange/22317)
% posted by G. Cardillo


load 'C:\Springer\Survival\Survivaldat\limphoma.mat'

x1 = [ limphoma.survive(limphoma.stage == 1),...
            limphoma.censored(limphoma.stage==1)];
x2 = [limphoma.survive(limphoma.stage == 2),...
            limphoma.censored(limphoma.stage == 2)];
logrank(x1, x2)

%print -depsc 'C:\Springer\Survival\Survivaleps\limphomaLR.eps'