Thank you so much for sharing such kind of content. Is it possible to have a p-value in emmean table? And how to interpret the differences based on the distinct letters?
I will look for the code or possible modification to get p-values in emmean table. Regrading interpretation of cld: the bars or boxes sharing letters are not statistically significant. When letters are different, there is a significant difference.
@@DevResearch for some reason this section of code did not work for me: emmean = emmeans(mod2,specs = c("species","sex")) emmean_cld = cld(emmean,alpha=0.05,Letters=letters) so I had to change this section to : emmean = emmeans (mod2 , ~ species | sex)) for my own data and then I got the cld results.
I am facing a problem that lettering starts from the lowest mean value, but I want, as usual, from the highest mean bar as a then next (just reverse that now display by using this code). How can I?
Thank you. But you provided a one-way ANOVA code here. However, I have modified the code. But the lettering displayed just letters, not significant lettering. Could you help with this?
Thank you so much for sharing such kind of content. Is it possible to have a p-value in emmean table? And how to interpret the differences based on the distinct letters?
I will look for the code or possible modification to get p-values in emmean table.
Regrading interpretation of cld: the bars or boxes sharing letters are not statistically significant. When letters are different, there is a significant difference.
Thanks!
It's part 2 of the tutorial. Do watch part I also.
@@DevResearch for some reason this section of code did not work for me: emmean = emmeans(mod2,specs = c("species","sex"))
emmean_cld = cld(emmean,alpha=0.05,Letters=letters)
so I had to change this section to : emmean = emmeans (mod2 , ~ species | sex)) for my own data and then I got the cld results.
Thanks again for the video: is there any way we do separate mean comparison for sexes per each species? in terms of showing CLDs?!
I am trying to wirte a script for this. But am short opf time. Will compile it soon.
@@DevResearch Thanks! you are the best
Thanks for your nice video. Unfortunately, the following code is not working for me-
emmean_cld
please install package multcomp and call the library(multcomp). and then run your code. The issue may resolve.
@@DevResearch I have installed and called the library multcomp package, but it is still showing the error😢
Please share your code and data. Be sure I will use your data only for this purpose. My mail id is in description.
I am facing a problem that lettering starts from the lowest mean value, but I want, as usual, from the highest mean bar as a then next (just reverse that now display by using this code). How can I?
library(emmeans)
library(multcomp)
library(multcompView)
library(ggplot2)
library(dplyr)
# Load data and fit the model
library(palmerpenguins)
mod
Thank you. But you provided a one-way ANOVA code here. However, I have modified the code. But the lettering displayed just letters, not significant lettering. Could you help with this?
@@calmseeker5501 i will try for it.
# Reverse the letter assignment
emmean_cld %
arrange(desc(emmean)) # Sort by descending means
emmean_cld$.group