T_Mu returns the test statistic for an unconditional CMH MS equivalent
test of required degree. This function is used in the
unconditional_CMH function.
Usage
T_Mu(treatment, response, strata = NULL, degree)
Value
The function returns the test statistic for an unconditional CMH MS
equivalent test of required degree.
Arguments
treatment
a vector of treatment values.
response
a vector of response values.
strata
a variable defining the strata.
degree
the degree assessment required.
References
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.