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
Unexpected behavior (suspected bug) when using Mata views with temporary variables created by fvrevarI encountered a very strange behavior when I use Mata views on temporary variables created by fvreva…
Pick columns to output using esttab and estpost correlationHello, I was wondering if there was an easy way to pick the columns to output with esttab when buil…
Is there an import delimited option to remove "." from variable names?Hi, I just imported a csv using the import delimited command. It imported with no errors or warning…
putexcel -- italicize a single word in a line of text, not the entire cellHello, I am using putexcel to add a line of text to a table cell. I would like to italicize a singl…
Spatial Autogressive Models for Binary Outcomes?Hi Folks, I was reading through about Stata's spatial autogressive models (https://www.stata.com/fe…
Subscribe to:
Post Comments (Atom)
0 Response to Changing marker symbols for each level of an interaction using marginsplot
Post a Comment