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!!!!
Related Posts with Three way interaction marginsplot?
Using the ipdmetan functionHi, I am trying to run a two stage individual patient data meta-analysis and I have derived treatmen…
IV interpretation of result of test of endogeneity with weak instrumentsDear all, I will please like to find out a few things. I use OLS in my analysis and to address endo…
Getting common coefficient and restrictions in an equationI want to estimate an equation by setting restrictions to coefficients. Likewise, I want to get comm…
Create a Pseudo Panel Data and AnalysisHello eveyone I would like to analyze the determinants of the dynamics of women's employment (15-49…
putdocx phtestHi Statalist I am trying to export the proportional hazards statistics to a word document (that als…
Subscribe to:
Post Comments (Atom)
0 Response to Three way interaction marginsplot?
Post a Comment