Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: contrasts


From   Nikolaos Pandis <npandis@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: contrasts
Date   Mon, 1 Oct 2012 07:21:44 -0700 (PDT)

Hi to all

I am running the following command:

reg force i.wiretype //wiretype has 3 levels

then I would like to get the contrasts (2 vs. 1, 3 vs.1 and 3 vs.2) and plot via marginsplot.

margins r.wiretype,contrast

marginsplot,yline(0)

I can get the 2 contrasts with the baseline but I cannot get the last 3 vs. 2 contrast within the same command so I can include all 3 contrasts in the marginsplot.

Any help would be appreciated.

Thank you,

Nick

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index