GithubHelp home page GithubHelp logo

Comments (2)

rogerssam avatar rogerssam commented on July 23, 2024

Good day all,

I know when working with the emmeans package I can make comparism between many lines and check variety. that is the aim is to select all lines that out perform the check. But I don't know how to achieve this using your pacakge. Thank you very much for writing this package. Merry Christmas and Happy New Year in Advance.

Here is an example of what I want to achieve:

Load Packages

library(tidyverse)
library(agridat) # To get the omer.sorghum dataset
library(lmerTest)
library(emmeans)
library(biometryassist)

Model

model <- lmer(yield ~ gen + env+(1 | rep), data = omer.sorghum)

summary(model)
test <- anova(model, ddf = "Kenward-Roger", type = 3)
test

Post Hoc Test

comparisons.G18 <- emmeans(model, specs = trt.vs.ctrl ~ gen, ref = 18)
#str(comparisons.G18)
#names(comparisons.G18)

comparisons.G18

comparisons.G18$contrasts # Get the contrast

comparisons.G18$contrasts %>%
as_tibble() %>%
arrange(desc(estimate))

This does not work

multiple_comparisons(model.obj = model,classify = 'gen',specs = trt.vs.ctrl ~ gen, ref = 18)

Hi @BB1464, this isn't currently implemented, but I will add it as a feature request and see what I can do to make it happen.

from biometryassist.

BB1464 avatar BB1464 commented on July 23, 2024

Thanks @rogerssam, I will be looking forward to it.

from biometryassist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.