Learn R Programming

glrt (version 2.0)

Chisqstat3: Compute the chi-square test statistic and degrees of freedom for test gLRT3

Description

This function computes the chi-square test statistic and degrees of freedom for test gLRT3. The degree of freedom depends on whether there are exact observations and proportions of exact observations in each treatment.

Usage

Chisqstat3(U, V, counts)

Arguments

U
$k$-vector of the test statistic in gLRT3, where $k$ is number of treatments.
V
estimated $k$ by $k$ covariance matrix of U
counts
a $k$ by 2 matrix containing number of exact and non-exact observations for each treatment

Value

chisq
chi-square test statistic
df
degrees of freedom used.

References

X. Zhao, Q. Zhao, J. Sun, Q. and J. S. Kim (2008), "Generalized Log-rank Tests for Partly Interval-Censored Failure Time Data", Biometrical Journal, 50 (3): 375-385.