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?
T test between coefficients in categorical variablesHello there, my regression is: WageHour Var1##Var2 I want to check all the p-values between the…
Labelling groupsCan someone please tell me why this is an invalid syntax and I can't label my age groups please? ge…
Paired or Unpaired t test for Panel dataHi Dear, If we have to run t tests of two groups of countries. Both groups of countries consist of …
Comparing dates in 2 variables and 2 observationsHello, Beginner Stata user here. So I have two date variables in 13Nov2019 type format, which are a…
Converting string values to numericI would appreciate a hand with concise code to convert variable values that are listed alphabeticall…
Subscribe to:
Post Comments (Atom)
0 Response to Three way interaction marginsplot?
Post a Comment