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]

From |
"Roger B. Newson" <r.newson@imperial.ac.uk> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Recovering Names of Factor Variables for Displaying Table of Estimates |

Date |
Mon, 05 Dec 2011 20:51:36 +0000 |

I hope this helps. Best wishes Roger References

http://www.imperial.ac.uk/nhli/r.newson/usergp.htm#uk2010 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: r.newson@imperial.ac.uk Web page: http://www.imperial.ac.uk/nhli/r.newson/ Departmental Web page: http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/ Opinions expressed are those of the author, not of the institution. On 05/12/2011 18:10, Lloyd Dumont wrote:

Thanks, Alan. That does generate a list of variables, including those created to capture the ineractions. But, I get the same problem. For example, according to the coeflegend table, one of the interactions is called 1.X1#c.X2. But, if I try to generate a table of estimates... estimates table M1 M2, /// stats(N) star(.1 .05 .01) /// keep(1.X1#c.X2) /// b(%9.4fc) stfmt(%9.0fc) style(oneline) I get X1#c: operator invalid So, that leaves me back where I started... ----- Original Message ----- From: Alan Neustadtl<alan.neustadtl@gmail.com> To: statalist@hsphsun2.harvard.edu Cc: Sent: Monday, December 5, 2011 12:51 PM Subject: Re: st: Recovering Names of Factor Variables for Displaying Table of Estimates Try using the -coeflegend- option for regress or after you estimate your model try -regress, coeflegend-. Best, Alan On Mon, Dec 5, 2011 at 12:24 PM, Lloyd Dumont<lloyddumont@yahoo.com> wrote:Hello, everyone. I am estimating a few equations using factor variables. Some are just dummies, and some are dummies crossed with continuous variables. What I cannot figure out is how to reference the names of the newly-created two-way multiplicative interaction terms. I have even tried to copy the variable names from - mat list e(b) - . That works for the simple, one-way dummy, but not for the interaction terms. Is there a simple solution? If it helps, here is a minimal recreation of the estimation command... reg Y i.X1##c.X2 i.X1##c.X3 i.X1##c.X4 Thank you! Lloyd * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/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/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/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/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Recovering Names of Factor Variables for Displaying Table of Estimates***From:*Lloyd Dumont <lloyddumont@yahoo.com>

**Re: st: Recovering Names of Factor Variables for Displaying Table of Estimates***From:*Alan Neustadtl <alan.neustadtl@gmail.com>

**Re: st: Recovering Names of Factor Variables for Displaying Table of Estimates***From:*Lloyd Dumont <lloyddumont@yahoo.com>

- Prev by Date:
**Re: st: regression coefficient by group** - Next by Date:
**RE: st: Recovering Names of Factor Variables for Displaying Table of Estimates** - Previous by thread:
**Re: st: Recovering Names of Factor Variables for Displaying Table of Estimates** - Next by thread:
**RE: st: Recovering Names of Factor Variables for Displaying Table of Estimates** - Index(es):