T_Mu {CMHNPA}R Documentation

T_Mu statistic

Description

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)

Arguments

treatment

a vector of treatment values.

response

a vector of response values.

strata

a variable defining the strata.

degree

the degree assessment required.

Value

The function returns the test statistic for an unconditional CMH MS equivalent test of required degree.

References

Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.

See Also

unconditional_CMH()

Examples

attach(job_satisfaction)
T_Mu(treatment = income, response = as.numeric(satisfaction),
strata = gender, degree = 1)

[Package CMHNPA version 1.1.1 Index]