Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Changing line style in marginsplot


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Changing line style in marginsplot
Date   Thu, 8 Aug 2013 11:38:28 +0200

On Thu, Aug 8, 2013 at 11:16 AM, John Antonakis wrote:
> After margins, where I had an interaction between two continuous predictors,
> I would like to specify that the two regression lines (for high and low
> values of the moderator) have different line patterns.
>
> At this time I have:
>
> marginsplot, cline(lpattern(1 "." 2 "--" ))
>
> ....but Stata ignores this.

You can do that by typing:

marginsplot, plot1opts(lpattern(".")) plot2opts(lpattern("--"))

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index