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
Expand dataDear Statalist Members, I am looking for help with expanding my dataset below to include a categori…
Analysis of Stock market data in Stata - First TimeDear All, I have daily stock market data of 174 firms from 2000 to 2019 (about 4400 prices per stoc…
Python: Importing pandas (and other packages) into STATA 16I am running STATA 16 and installed Anaconda to be able to run python code from STATA. The installat…
How get variable list for a conditionI wonder if its possible get a variable list for a condition, example: Code: clear all sysuse auto…
average using past group informationHi all, I have company-level information as follows. For each company id in a country, I have the c…
Subscribe to:
Post Comments (Atom)
0 Response to Changing marker symbols for each level of an interaction using marginsplot
Post a Comment