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   John Antonakis <[email protected]>
To   [email protected]
Subject   Re: st: Changing line style in marginsplot
Date   Thu, 08 Aug 2013 11:43:37 +0200

Perfect!

Thanks Maarten.

Best,
J.

__________________________________________

John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management

Faculty of Business and Economics
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis

Associate Editor:
The Leadership Quarterly
Organizational Research Methods (incoming)
__________________________________________

On 08.08.2013 11:38, Maarten Buis wrote:
> 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/

*
*   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