Hello, I am running a model:
I would like to produce marginsplots and tried two different margins codes and got two different plots as follows. I don't know why these two commands produce different plots and which one is correct. I was wondering if anyone could help me out. Thank you!
The first code is:
The corresponding graph is:

the second code is:
The corresponding graph is:
Code:
reg outcome IV i.group IV#i.group
The first code is:
Code:
margins, at(IV=(-2.1(0.5)1.9) over(group)
the second code is:
Code:
margins group, at(IV=-2.1(0.5)1.9)

Comment