This function computes the chisquare 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.
1  Chisqstat3(U, V, counts)

U 
kvector of the test statistic in 
V 
estimated k by k covariance matrix of 
counts 
a k by 2 matrix containing number of exact and nonexact observations for each treatment 
chisq 
chisquare test statistic 
df 
degrees of freedom used. 
This is not to be called by the user.
Qiang Zhao and Jianguo Sun
X. Zhao, Q. Zhao, J. Sun, Q. and J. S. Kim (2008), "Generalized Logrank Tests for Partly IntervalCensored Failure Time Data", Biometrical Journal, 50 (3): 375385.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.