Hi everyone,
I am using Stata 14.2 and the default scheme (s2color) to plot the conditional marginal effects of an interaction between two continuous variables (indvar1 and indvar2) at four different values of indvar2 using -marginsplot- and the following code:
ologit depvar c.indvar1##c.indvar2 ${controlvars}
margins, dydx(indvar2) at(indvar1=(0(.1)1) indvar2=(0 .01972556 .19057263 1)) atmeans predict(outcome(1))
marginsplot, xtitle("indvar1") ytitle("Effects on Pr(Outcome1)") plotopts(msymbol(D))
This results in a graph (attached) with four lines, one at each level of indvar2. I would like to change the marker symbols so that the markers are different for each of the four lines. That is, I would like the markers to be diamonds for one line, circles for the second line, squares for the third line, and X's for the fourth line. However, when I use plotopts, it changes all the symbols at the same time. Is there a way to change the marker symbols so that they are different for each of the four lines?
Thank you.
Related Posts with Changing marker symbols for each level of an interaction using marginsplot
ivreghdfe interaction term!Hello, I'm using ivreghdfe and need to interact my instrument with a categorical variable. Could so…
Is there a Mata function for inputting to and outputting from local macros in the calling segment?Fellow Statalisters (especially StataCorp): Are there any Mata functions to input values from, and …
Diff-in-Diff Regression for Minimum Wage ImpactsHi all, I'm very new to Stata and I'm doing my own research for a class to write a paper. I'm trying…
Drop observations corresponding to other variableI have two variables, Names1 and Names2, both consisting of certain names. A simplified e.g. is past…
filter data use different group----------------------- copy starting from the next line ----------------------- Code: * Example g…
Subscribe to:
Post Comments (Atom)
0 Response to Changing marker symbols for each level of an interaction using marginsplot
Post a Comment