Please change "Time" header to your time unit.

You may copy data from Excel, Google sheets or any tool that separate data with **Tab** and **Line Feed**.

Copy the data,**one block of 3 consecutive columns includes the header**, and paste below.

Copy the data,

Copy the data,

It is okay to leave empty cells, empty cells or non numeric cells won't be counted

Group | Observed Frequency | *Expected Frequencies |
---|---|---|

k | number of groups | |

n | sample size | |

χ² | Chi square test statistic |

validation message

Hypotheses

H_{0}: Model Fits: Equal survival distributions

H_{1}: Model Doesn't Fit

Test statistic

χ² distribution

The test uses Chi-square distribution.

The log-rank test model assumes the events per subject distributes evenly between the groups. The expected number of events is calculated per each time value.

Example with two groups A and B.

Expected value = n

The page was created per Anna P request.

The following R code should produce the same results as the **alternative** log-rank test