I am currently running a serial medaition where my IV is multicategorical with 3 levels, while my moderators and DV are continuous. I created 2 dummy variables for my IV. Therefore in my output I see hwo they compare for different variabels to their reference group. However now I am wondering how I can test how the 2 levels compare to each other, so the 2 levels that are nto the reference group. Normally I would use pariwise comparison but I could not find anything similar for lavaan.
This is my model:
model1 <- 'beliefCT_mean ~ c*pattern_mean + g*effectance_mean + f1*exposure_No + f2*exposure_Topic + i1*Age + i3*believer\n
effectance_mean ~ a1*exposure_No + a2*exposure_Topic \n
pattern_mean ~ b*effectance_mean + d1*exposure_No + d2*exposure_Topic + j*believer\n
indirect_1 := a1*b*c\n
indirect_2 := a2*b*c\n
indirect_3 := a1*g\n
indirect_4 := a2*g\n
indirect_5 := d1*c\n
indirect_5 := d2*c\n
Total_ := a1*b*c + a2*b*c + a1*g + a2*g + d1*c + d2*c+ f1 + f2\n
fit1 <- sem(model1, final, se = "bootstrap", bootstrap = 1000)
exposure is my IV(levels, no, Topic, CT(reference)
effectance => M1
pattern => M2
beliefCT => DV