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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: Re: st: mlabel on marginsplot?


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Re: st: mlabel on marginsplot?
Date   Thu, 18 Oct 2012 09:54:48 -0500

On Thu, Oct 18, 2012 at 9:23 AM, Nick Cox <njcoxstata@gmail.com> wrote:
> You are not giving specific examples of what you tried, but in general
> marker labels only work when the values  being plotted and the
> variable you want to use as marker label can be related by virtue of
> reading across observations. That is the structure is similar to
>
> (y being plotted)  (x being plotted)  (z to use as marker label)
>
> I haven't looked inside -marginsplot- but I think that the way that
> -marginsplot- works is with a reduced dataset and that reduced dataset
> would need to include your marker label variable for this to work.
>

Can see the data set that -marginsplot- use by calling -serset use-  :

sysuse auto,clear
reg price mpg
margins , at(mpg=(5(5)50))
marginsplot
serset use
l

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