Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalence test for interactions #43

Open
Lakens opened this issue Aug 1, 2019 · 0 comments
Open

Equivalence test for interactions #43

Lakens opened this issue Aug 1, 2019 · 0 comments

Comments

@Lakens
Copy link
Owner

Lakens commented Aug 1, 2019

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant