Performs pairwise two-sample ordinal regression across groups for paired or blocked data.
pairwiseOrdinalPairedTest(formula = NULL, data = NULL, x = NULL,
g = NULL, b = NULL, method = "fdr", ...)
A formula indicating the measurement variable and the grouping variable. e.g. y ~ group | block.
The data frame to use.
The response variable as a vector.
The grouping variable as a vector.
The blocking variable as a vector.
The p-value adjustment method to use for multiple tests.
See p.adjust
.
Additional arguments passed to
clmm
.
A dataframe of the groups being compared, the p-values, and the adjusted p-values.
The input should include either formula
and data
;
or x
, g
, and b
.
Ordinal regression
is analogous to general linear regression or generalized linear
regression for cases where
the dependent variable
is an ordinal variable.
The ordinal
package provides a flexible and powerful
implementation of ordinal regression.
The pairwiseOrdinalPairedTest
function
can be used as a post-hoc method following an omnibus
ordinal regession whose form is analogous to
a one-way analysis of variance with random blocks.
The blocking variable is treated as a random variable.
The x
variable must be an ordered factor.
# NOT RUN {
data(BobBelcher)
BobBelcher$Likert.f = factor(BobBelcher$Likert, ordered = TRUE)
BobBelcher$Instructor = factor( BobBelcher$Instructor,
levels = c("Linda Belcher", "Louise Belcher",
"Tina Belcher", "Bob Belcher",
"Gene Belcher"))
PT = pairwiseOrdinalPairedTest(Likert.f ~ Instructor | Rater,
data = BobBelcher,
threshold = "equidistant",
method = "fdr")
PT
cldList(comparison = PT$Comparison,
p.value = PT$p.adjust,
threshold = 0.05)
# }
Run the code above in your browser using DataLab