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

Share:

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

1
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.

Note

This is not to be called by the user.

Author(s)

Qiang Zhao and Jianguo Sun

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.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.