np_anova {CMHNPA} | R Documentation |
np_anova function
Description
np_anova
performs a nonparametric ANOVA.
Usage
np_anova(ordered_vars, predictor_vars, uvw)
Arguments
ordered_vars |
a data frame for the ordered variables being assessed. |
predictor_vars |
a data frame for the un-ordered variables being assessed. |
uvw |
the degree being assessed. This should be a vector with length
equal the number of elements in the |
Details
Nonparametric ANOVA is a methodology that is applicable where one as an ordered response variable as well as both ordered response and predictor variables.
Value
Where there is only one ordered variable, the function returns a type III
ANOVA table to test for differences of order uvw
across the levels of
the predictor_vars
.
Where there is more than one ordered variable, the function returns a type
III ANOVA table to test for differences in generalised correlations of order
uvw
across the levels of the predictor_vars
.
References
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
Examples
attach(jam)
np_anova(ordered_vars = sweetness, predictor_vars = data.frame(type,judge), uvw = 1)