Definition

For the -th sample, let , where , be i.i.d. survival time with a distribution , and be i.i.d. censoring time with a distribution . We can observe where and is the censoring indicator.

The generalized Mantel-Haenszel test is an extension of Mantel-Haenszel Test used for more than two sample case.

Let be the combined samples

For each uncensored time point, construct a table.

Dead
Alive

Under the null hypothesis , the test statistic of generalized Mantel-Haenszel test is defined as where , are the -length vector and matrix, calculated with the first population is deleted data (corner-point constraint).

The and is defined as where where