2 Compact letter display(CLD):Two way anova and visualistion using ggplot2

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 17

  • @adamavip
    @adamavip Рік тому

    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?

    • @DevResearch
      @DevResearch  Рік тому

      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.

  • @minayooo
    @minayooo 10 місяців тому

    Thanks!

    • @DevResearch
      @DevResearch  10 місяців тому +1

      It's part 2 of the tutorial. Do watch part I also.

    • @minayooo
      @minayooo 10 місяців тому +2

      @@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.

  • @minayooo
    @minayooo 10 місяців тому

    Thanks again for the video: is there any way we do separate mean comparison for sexes per each species? in terms of showing CLDs?!

    • @DevResearch
      @DevResearch  10 місяців тому +1

      I am trying to wirte a script for this. But am short opf time. Will compile it soon.

    • @minayooo
      @minayooo 10 місяців тому

      @@DevResearch Thanks! you are the best

  • @raselbarua4578
    @raselbarua4578 Місяць тому

    Thanks for your nice video. Unfortunately, the following code is not working for me-
    emmean_cld

    • @DevResearch
      @DevResearch  Місяць тому +1

      please install package multcomp and call the library(multcomp). and then run your code. The issue may resolve.

    • @raselbarua4578
      @raselbarua4578 Місяць тому

      @@DevResearch I have installed and called the library multcomp package, but it is still showing the error😢

    • @DevResearch
      @DevResearch  Місяць тому

      Please share your code and data. Be sure I will use your data only for this purpose. My mail id is in description.

  • @calmseeker5501
    @calmseeker5501 2 дні тому

    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?

    • @DevResearch
      @DevResearch  2 дні тому +1

      library(emmeans)
      library(multcomp)
      library(multcompView)
      library(ggplot2)
      library(dplyr)
      # Load data and fit the model
      library(palmerpenguins)
      mod

    • @calmseeker5501
      @calmseeker5501 День тому

      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?

    • @DevResearch
      @DevResearch  8 годин тому

      @@calmseeker5501 i will try for it.

    • @DevResearch
      @DevResearch  8 годин тому

      # Reverse the letter assignment
      emmean_cld %
      arrange(desc(emmean)) # Sort by descending means
      emmean_cld$.group