powered by
Categorical responses made by 15 subjects for two different prices of the same food product. The data is from a CMH design.
data(food)
A data frame with 30 rows and three columns.
a factor showing two price points for the product
a factor indicating the decision of either buy, undecided, or not_buy the product
a factor showing the individual making a decison about the product
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
attach(food) b_hj = matrix(1:3,ncol=15,nrow=3) CMH(treatment = price, response = decision, strata = subject, b_hj = b_hj, test_OPA = FALSE, test_C = FALSE)
Run the code above in your browser using DataLab