Using emmeans, I have already coded for the difference and significance in means between: White Christian (WC) Men and Black Christian (BC) men, and then White Muslim (WM) men and Black Muslim (BM) men, for a certain stereotype Dimension. Here is my code for it:
pairwise_emm2 <- emmeans(fitdata3, pairwise ~ Religion * Race | Dimension, type = "response") pairwise_emm2$contrasts
I now want to code for the differences between these differences. Meaning I want to know if the WC-BC difference is greater than the WM-BM difference, and if it is significant. Can someone please help me figure out the code for that? Thank you!