Hi all
I am running a threeway interaction model using mixed and was wondering how best to go about plotting this in a graph?
the original model is
mixed wlb_factorc flexi1##c.z_chcov03##female empflex flexi1 autohrs telework tmoff || Country:flexi1, mle variance
based on this: https://www.statalist.org/forums/for...-by-continuous
I've tried
margins flexi1, at (z_chcov03=(-1.80 (0.2) 2.80) female=(0 1))
marginsplot, by (flexi1)
but keep getting the error message "female ambiguous abbreviation"
and if I were to do this
margins flexi1 female flexi1#female, at (z_chcov03=(-1.80 (0.2) 2.80))
marginsplot, by (flexi1)
I get the error message "invalid at() dimension information; using variable flexi1 as a factor variable and a regular variable is not supported"
I've tried using i.flexi1 and that doesn't work.
In general I would like to get two graphs like https://www.statalist.org/forums/fil...4&d=1512146046
but where x=chcov03 and y=wlb_factorc, separately for male and female (like domestic vs foreign in the above link graph) and within the graph for those who flexi1==0 and flexi1==1 (like weight in the link graph)
Many thanks for your help!!!!
0 Response to Three way interaction marginsplot?
Post a Comment