October 2017
Beginner to intermediate
572 pages
26h 1m
English
The survdiff function displays the number of observations in a group; in our case, 138 males and 90 females. The observation shows the number of events that occurred in the group. We can see that testing the null hypothesis shows no difference in the survival function. The second argument is rho, which decides the log-rank test or the Peto and Peto test. The default is rho=0, which stands for log-rank test and rho=1 specifies Peto and Peto modification of the Gehman-Wilcoxon test.
Read now
Unlock full access