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?
rangestat commandHello all, I need your help regarding rangestat command. I have a panel dataset with the panel dime…
Strange behavior of factor interactions using the 'o().variable' notationHello everyone, I ran some regressions with factorized interaction variables using the o().`varname…
Using Log in a Box-Cox TransformationHi everyone, I have a question regarding statistics in general, rather than STATA- and was hoping I…
50th Percentile Matrix not storing valuesLooking to store my 50th percentile values in a matrix that loops for n= 10, 100, 1000, 10000 observ…
Minimum number of observations required to estimate Panel data?Dear all, I have a panel data with both N and T small, 25 cities and 10 years respectively. Is the p…
Subscribe to:
Post Comments (Atom)
0 Response to Three way interaction marginsplot?
Post a Comment