Tutorials › Competing Risks and Multi-State Models › Interpreting a Gray-Test Result

Testing and Design · Tutorial 220 of 699

Interpreting a Gray-Test Result

Interpret what a Gray test says about group differences in a cause-specific cumulative incidence function—and what it does not say about their size or practical importance.

Advanced 10 min read

What You'll Learn

  • State the null hypothesis tested by Gray’s test for a specified event type.
  • Interpret a Gray-test statistic, degrees of freedom, and p-value in context.
  • Use cumulative incidence estimates to describe the direction and size of observed group differences.
  • Distinguish an overall test result from pairwise conclusions and effect-size estimates.
  • Identify censoring and follow-up conditions that affect interpretation.
  • Recognize why statistical significance does not establish clinical importance or causation.

Reading a Gray-Test Result in Context

A Gray test answers a particular question: is there evidence that the cumulative incidence function (CIF) for a specified event type differs across groups over follow-up? Its p-value summarizes evidence against a null hypothesis; it does not say how large a difference is, which group has the higher estimated incidence, or whether a difference matters in practice. Those parts of the interpretation require the group-specific CIF estimates and the study context.

The distinction matters because the test statistic is constructed to assess differences across follow-up, whereas a report often needs to describe incidence at a meaningful time point as well. A careful interpretation reports both: what the test indicates about evidence of a group difference, and what the estimated CIFs show about its observed direction and magnitude.

Definition: For event type \(k\), the CIF \(F_k(t\mid g)\) is the probability that an individual in group \(g\) experiences event type \(k\) by time \(t\), before experiencing a competing event. A Gray test assesses the null hypothesis that the CIF for event type \(k\) is the same across the groups throughout the tested follow-up period. With \(G\) groups, the usual global test has \(G-1\) degrees of freedom.

The null concerns the CIF for the event type named in the analysis, not all events combined. A competing event prevents the event of interest from occurring first and is part of the event process; it is not simply treated as ordinary censoring. The CIF therefore describes the probability of the event of interest in the presence of competing events.

For interpretation, assume independent individuals and censoring that is independent of the event process, at least within the groups being compared, under the conditions used for the analysis. The test also relies on its stated follow-up period, target event definition, and variance calculation. If censoring differs in ways related to event risk within groups, or follow-up is inadequate for some groups, the estimates and test may not support the intended comparison. These conditions should be checked using the study design and follow-up diagnostics, not inferred from a small p-value.

What the Statistic and P-Value Tell You

For two groups, Gray’s test can be represented by a score statistic \(U\) and its estimated variance \(V\), with \(Q=U^2/V\). Under the null and the test’s regularity conditions, \(Q\) is compared with a chi-square distribution with one degree of freedom. For \(G\) groups, the corresponding quadratic form is compared with a chi-square distribution with \(G-1\) degrees of freedom. The reported p-value is the probability, under the null model, of obtaining a test statistic at least as large as the observed statistic.

A p-value is not the probability that the null hypothesis is true, nor the probability that the observed difference occurred “by chance.” It quantifies how unusual the test statistic would be under the null and the assumptions used for the test. A small p-value is evidence against equality of the group CIFs; it does not by itself establish the direction, size, clinical importance, or cause of a difference.

Why the Test Does Not Give a Direction or Effect Size

For two groups, squaring the standardized score removes its sign. If \(U\) is positive or negative, \(Q=U^2/V\) is unchanged. Therefore, \(Q\) and its p-value alone cannot tell which group has the higher estimated CIF. For more than two groups, a significant global test indicates evidence that at least one group differs, but does not identify which groups differ or in what direction.

To describe direction, inspect the group-specific CIF estimates over time and state the time point or interval being discussed. To describe size at a particular time \(t\), calculate an absolute difference, such as \(F_k(t\mid A)-F_k(t\mid B)\), and report it in percentage points. A relative measure may also be useful if appropriate, but it answers a different question and can be unstable when estimates are small. Neither a single-time contrast nor a test p-value summarizes every feature of the curves.

Uncertainty for an estimated contrast should be reported using an appropriate confidence interval that accounts for the estimates’ sampling variability and covariance. Do not treat two separate confidence intervals as if they were a confidence interval for their difference. Gray’s test is not itself a confidence interval for an effect size.

Worked Example: Significant Test and an Eight-Point Difference

Hypothetical data. In a study comparing two treatment groups, the prespecified event of interest is disease progression, and death before progression is a competing event. At 12 months, the estimated progression CIFs are 0.18 in Group A and 0.10 in Group B. The reported two-group Gray-test statistic is \(Q=6.25\), with \(df=1\). Assume the groups are independent and censoring is conditionally independent of the event process within each group, as required for the analysis.

Test result. The upper-tail probability for a chi-square statistic of 6.25 with one degree of freedom is approximately \(p=0.0124\). At a prespecified significance level of \(\alpha=0.05\), this is evidence against equal progression CIFs over the tested follow-up period.

Observed direction and size at 12 months. Group A has the higher estimated CIF. The estimated absolute difference is

$$ \widehat{F}_k(12\mid A)-\widehat{F}_k(12\mid B) =0.18-0.10=0.08. $$

Thus, the estimated progression incidence by 12 months is 8 percentage points higher in Group A than in Group B. The test supports evidence of a difference over follow-up; the point estimates describe the direction and size at 12 months. Without a confidence interval for the contrast, its precision at that time point cannot be fully assessed. If treatment assignment was not randomized, neither the test nor this contrast alone establishes a causal treatment effect.

Worked Examples Across Common Reporting Situations

Worked Example: A Non-Significant Result Is Not Proof of Equality

Hypothetical data. Two groups are compared for the CIF of a specified adverse event, with a competing event retained in the analysis. At 6 months, the estimated CIFs are 0.14 in Group A and 0.08 in Group B. The Gray-test output gives \(Q=0.64\) exactly and \(df=1\). Assume independent individuals, suitable independent censoring within groups, and adequate follow-up through 6 months.

The p-value is the chi-square upper-tail probability:

$$ p=P(\chi^2_1\geq 0.64)\approx 0.423711\approx 0.424. $$

At \(\alpha=0.05\), this result does not provide sufficient evidence to reject the null hypothesis of equal CIFs over the tested period. It does not prove that the group CIFs are equal. At 6 months, Group A’s estimated CIF is higher, and the observed difference is \(0.14-0.08=0.06\), or 6 percentage points. This point estimate should not be called statistically significant on the basis of the test, and its uncertainty cannot be judged from the p-value alone. A confidence interval for the contrast would help show which magnitudes remain compatible with the data.

Worked Example: Interpreting a Significant Three-Group Test

Hypothetical data. Three independent groups are followed for a specified event type, with competing events included in the CIF analysis. At 24 months, the estimated CIFs are 0.30 in Group A, 0.22 in Group B, and 0.12 in Group C. The global Gray-test output is \(Q=8.40\), with \(df=2\). Assume independent censoring within groups and adequate follow-up for the 24-month estimates.

For two degrees of freedom, the chi-square upper-tail probability is

$$ p=P(\chi^2_2\geq 8.40)=e^{-8.40/2} =e^{-4.20}\approx 0.0150. $$

At \(\alpha=0.05\), the global test gives evidence that not all three CIFs are equal over the tested period. At 24 months, Group A’s estimate is highest and Group C’s is lowest. The estimated A-versus-C difference at that time is \(0.30-0.12=0.18\), or 18 percentage points. The global test does not establish that this particular pair differs significantly, nor does it test only the 24-month contrast. Pairwise comparisons require their own inferential procedure and attention to multiplicity. The point estimates describe the observed pattern; they do not, by themselves, prove why the groups differ.

A Short Justification: Why a Squared Score Has No Direction

For a two-group test, let \(U\) denote the score contrast and \(V\) its estimated variance. The test statistic is \(Q=U^2/V\). Since \(V\) is nonnegative, replacing \(U\) by \(-U\) leaves the statistic unchanged:

$$ \frac{(-U)^2}{V}=\frac{U^2}{V}. $$

The chi-square reference distribution and its upper-tail p-value therefore depend on the magnitude of the standardized contrast, not its sign. This algebra is why the statistic alone cannot identify the higher-CIF group. The direction must be read from the estimated CIFs, with the time period made explicit.

Diagnostics, Alternatives, and Limits

Before interpreting a result, check that the event type, group labels, time origin, and follow-up period match the scientific question. Then inspect the group-specific CIF estimates and the numbers still under observation or otherwise contributing information over time. Very sparse late follow-up can make late estimates unstable, even when a test returns a numerical p-value. Check that censoring patterns and the assumptions used for the variance and test are defensible; substantial group-specific loss to follow-up related to event risk can undermine the comparison.

The central alternative to a test-only report is not a different p-value but a complementary description of the estimated CIFs and their uncertainty. A table or plot can show how incidence develops over follow-up; a contrast at a scientifically meaningful time can summarize an absolute difference. Each answers a distinct question. The choice of a single time point should be guided by the study question, not selected after inspecting results merely because it shows the largest difference.

Gray’s test is a test of group differences in the CIF for a specified event type. It is not a direct test of a causal effect, a measure of hazard, or a summary of clinical utility. In observational comparisons, confounding may explain group differences. In any design, statistical evidence and practical importance are separate: a small difference can yield a small p-value in a large study, while an important-looking difference can remain uncertain in a small study.

A common mistake is to write, “The p-value is 0.02, so Group A has a larger risk and the effect is large.” The correction is to separate the claims: the p-value provides evidence against the null of equal CIFs; the estimated CIFs show which group is higher at the stated time; and their contrast, with uncertainty and units, describes the observed size. A p-value alone supports none of the latter claims.

Key takeaway: Report the Gray-test result as evidence about equality of the specified group CIFs over follow-up. Report direction and size from group-specific CIF estimates and explicit contrasts at meaningful times, with uncertainty where available. Do not treat the test statistic or p-value as an effect-size estimate.

Check Your Understanding

Answer each question, then check the brief solutions below.

  1. A two-group Gray test gives \(Q=4.00\), \(df=1\), and \(p\approx 0.0455\). Can the statistic alone tell which group has the higher CIF?
  2. At 18 months, Group A has an estimated CIF of 0.25 and Group B has 0.19. State the absolute difference in context.
  3. A three-group global Gray test has \(p=0.01\). What does this establish, and what does it not establish about individual pairs?
  4. Why is it incorrect to conclude that a non-significant test proves the group CIFs are equal?

Solutions. (1) No. The squared score loses its sign; inspect the group CIF estimates to determine direction. (2) The estimated difference is \(0.25-0.19=0.06\), or 6 percentage points higher in Group A at 18 months. (3) It provides evidence that not all group CIFs are equal over the tested period; it does not identify a differing pair or the direction of pairwise differences. (4) Failure to reject the null can reflect limited information or imprecision; it is not proof of equality. Interpretation should include estimates and, where available, uncertainty intervals.

Clinical Biostats