Learn R Programming

CMHNPA (version 1.1.1)

T_Mu: 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)

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.

See Also

unconditional_CMH()

Examples

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

Run the code above in your browser using DataLab