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: Re: st: mlabel on marginsplot?
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: Re: st: mlabel on marginsplot?
Date
Thu, 18 Oct 2012 15:23:53 +0100
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.
I'd approach Stata tech support with specific examples of what you are
trying, or do that here.
Nick
On Thu, Oct 18, 2012 at 3:09 PM, Ariel Linden, DrPH
<[email protected]> wrote:
> Hi Roger,
>
> As you know, I am a big fan of your suite of programs to extract results and
> then present them in either table or graphic displays. That said, Stata has
> done a great job with -margins- and -marginsplot- to perform a lot of what
> your programs do.
>
> I was hoping that -marginsplot- could do this, so that I wouldn't have to
> bring in the heavy artillery (your programs) :-)
>
> If -marginsplot- cannot currently provide observation labels as an option,
> perhaps the folks at Statacorp who follow the list can note of this as
> something for the annual wishlist?
>
> Ariel
>
> Date: Wed, 17 Oct 2012 16:26:50 +0100
> From: "Roger B. Newson" <[email protected]>
> Subject: Re: st: mlabel on marginsplot?
>
> I would be very surprised if this kind of thing couldn't be done using
> - -parmest- followed by -eclplot-, possibly with a bit of help from
> - -descsave-, depending on what exactly what you want to do and how you
> want to derive the marker labels. To use -parmest- after -margins-, I
> usually use the options
>
> bmatrix(r(b)) vmatrix(r(V))
>
> to access the estimates from -margins- instead of from the estimation
> command, and to be able to extract other e() results using the -escal()-
> and -emacro()- options. The -parnest-, -descsave- and -eclplot- packages
> can all be downloaded from SSC.
>
> Best wishes
>
> Roger
>
> Roger B Newson BSc MSc DPhil
> Lecturer in Medical Statistics
> Respiratory Epidemiology and Public Health Group
> National Heart and Lung Institute
> Imperial College London
> Royal Brompton Campus
> Room 33, Emmanuel Kaye Building
> 1B Manresa Road
> London SW3 6LR
> UNITED KINGDOM
> Tel: +44 (0)20 7352 8121 ext 3381
> Fax: +44 (0)20 7351 8322
> Email: [email protected]
> Web page: http://www.imperial.ac.uk/nhli/r.newson/
> Departmental Web page:
> http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgene
> tics/reph/
>
> Opinions expressed are those of the author, not of the institution.
>
> On 17/10/2012 15:55, Ariel Linden, DrPH wrote:
>> Hi Fellow Listers,
>>
>> Does anyone know if there is a way to get marker labels on observations on
> a
>> marginsplot? The mlabel () option did not seem to work, but I am not sure
> if
>> my syntax was the reason or if marginsplot just does not allow marker
>> labels?
*
* 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/