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]
st: changing sort order on marginsplot x-axis
From
Nikolaos Pandis <[email protected]>
To
[email protected]
Subject
st: changing sort order on marginsplot x-axis
Date
Thu, 9 Jan 2014 14:08:47 +0200
Hi to all,
I have fitted a logistic model and then run margins
margins var1, at( var2=(0 1))
marginsplot
var1 has 10 levels coded 1-10
on the marginsplot the x-axis is populated by the var1 levels (10
ticks) in an ascending order following the coding 1-10.
Is there a way to change the order of the 1-10 on the x-axis and order
by increasing (or decreasing) probablities as indicated by the y-axis?
I can recode var1 to get the disired effect but I was wondering if
there is an easier way.
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/