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
Different colors for the confidence intervals plotDear All, I want to plot confidence intervals with different colors of my preference. I am using the…
Histogram –Assigning min and max values to binsDear Stata users, For my Project, I need the histogram of the intraday returns for each day and save…
no observations r(2000) error codeHello I have a dataset of daily stock return and cash dividends for all Danish listed firms. I am i…
Dummy variable for group matched observationsDear all, I have a variable of unique ids for a dataset of survey respondents which I have matched …
Generate variable with conditionsDear all, I am currently working on my masterthesis. For this thesis, I am preparing a dataset whic…
Subscribe to:
Post Comments (Atom)
0 Response to Changing marker symbols for each level of an interaction using marginsplot
Post a Comment