Questions tagged [multcompview]
19 questions
3
votes
0 answers
Multiple comparisons with gtsummary
Since my question is similar to one that's been asked before, I'll steal the reprex (also below), for consistency's sake, from
Summary Table (mean + std.error) with p-values for 2-way anova
I'm curious how to integrate a post hoc means comparisons…

Brinkley
- 31
- 4
2
votes
0 answers
Combining two boxplots with a common y axis using ggplot2
I have two boxplots each with its own values, but a common legend and y axis. I tried combining them using the patchwork function but how can I get them into the same plot along with the Tukeys letters on top of them? I have attached my code below…

Maany Ramanan
- 53
- 3
2
votes
0 answers
Is there a way to add cld to a combined ggplot?
I'm analysing a set of multivariate data, first comparing it to a control, then comparing the different treatments among themselves. The data can be found here.
For the comparison with the control, I'm using ggpubr :
ggbarplot(s1, x = "media", y =…

Sara Esteves
- 89
- 5
2
votes
0 answers
How to fix: "dimensions of coefficients and covariance matrix don't match" error in glht function (multcomp package)
I'm using the glht function (multcomp) to compute point estimates and standard errors of the linear combination of coefficients after a regression. The regression includes a four-way interaction term for which not all combinations have data points,…

Vicky donna
- 41
- 4
1
vote
1 answer
Obtaining Significance letters (multcompView) while performing Dunn's Test
I am trying to obtain the significance letters with the function multcompLetters2( ) after performing a Pairwise Dunn Rank Sum Test with function dunnTest( ).
However, after assigning the output of the test to an object (dunn.iris), I am unable to…

chiliconcarno
- 15
- 6
1
vote
3 answers
In R is there a way to loop multcompview functions (i.e. CLD) through lists of ANOVAs and Tukeys?
I eventually want to plot each variable with CLDs. But in the mean time I am having trouble just getting the CLDs. I have data that looks like this;
df <- data.frame(Treat = rep(LETTERS[1:4], 100, replace = TRUE),
A = rnorm(400),
…

Dustin
- 183
- 7
1
vote
1 answer
How to separate compact letter display (CLD) in multcomp by group without changing the p-value adjustment method?
Problem
I would like to plot estimated marginal means from a three-way factorial experiment with letters indicating significantly different means, adjusted for multiple comparisons. My current workflow is to fit the model with lmer(), calculate…

qdread
- 3,389
- 19
- 36
1
vote
2 answers
How to extract the value (minimum difference) the function multcomp::glht is using to calculate the multiple comparisons of means in R?
I have this example where I'd like to have multiple comparisons across treatments.
Here is the data:
data.1 <-read.csv(text =…

Giuseppe Petri
- 604
- 4
- 14
1
vote
1 answer
glht() giving same std. error for each treatment
I'm trying to do a Dunnett's test on a linear mixed model using lme4 and glht.
I set up and ran the model as below
Untransformed.lmer <- lmer(Sum ~ Treatment + (1|Block), data =…

HylaRestuans
- 11
- 2
1
vote
1 answer
Two-way ANOVA Tukey Test and boxplot in R
I'm following this tutorial and this question 1, question 2 to plot a Two-way box plot with facets and the letters indicating the statical difference between the treatments. Does anyone know how to do this kind of graph?
Some code about my…
1
vote
1 answer
R:How to Use cld Function to Get Results from One-Way Anova
So I have installed the multcomp and multcompview packages to RStudio; However, when I go to use the cld function I keep getting this error
Error in UseMethod("cld") :
no applicable method for 'cld' applied to an object of class "data.frame"
My…

N.J
- 21
- 2
- 7
1
vote
1 answer
TukeyHSD and multcompView with dplyr and broom in R
It is mentioned in broom website that it can be used for TukeyHSD and multcomp (See here). However, I could not figure it out how to use broom for TukeyHSD and multcomp.
See MWE given below.
df1 <- data.frame(
Rep = factor(rep(1:3, each = 4, times…

MYaseen208
- 22,666
- 37
- 165
- 309
0
votes
1 answer
Problem with argument lengths while using multcompLetters2
I'm trying to obtain the compact letters associated with the p values I generated with the function pairwise.wilcox.test().
I used the function multcompLetters() which works well, but I want the letters to be ordered so that the highest mean gets…

chiliconcarno
- 15
- 6
0
votes
0 answers
Anova+ Post-Hoc in R. 5 treatment groups, 7 variables measured, interested in treatment effects per variable only
I have the following issues.
I have a data frame with 3 columns. One is my Treatment column, with 5 different Treatments, repeated 3 times. The second column is my variable column, which has 7 different variables for each treatment. The 3rd column…

ConfusedB
- 3
- 2
0
votes
0 answers
How can I get the letters of significance (cld letters) ordered the same as the ordered bar plot?
I am not quite new to R, so apologies if this is simple. I have read all the previous questions relating to this and am still unable to solve it.
I need to order barplots in a specific order, which I can do. I then need to order the letters that…

user21264596
- 3
- 2