Skip to content

Equivalence test for interactions #43

Description

@Lakens

In the past I asked you about how to run equivalence test for interaction effects. I talked to my stats professor here at Cornell and he suggested using emmeans in R. Here is the code (though it does not create nice plots like your package):

categorical interaction equivalence test

summary(contrast(emmeans(lm1, c("x1", "x2"), weights = "equal"),
interaction = "consec"
), infer = TRUE, null=0, side="equivalence", delta=.1)

continuous interaction equivalence test

r1 <- ref_grid(lm1, at = list(x1 = c(0, 1), x2 = c(0, 1)))
summary(emmeans(r1,c("x1","x2"),contr = list(int=c(1,-1,-1,1))),infer=TRUE,null=0,delta=.1,side="equivalence")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions