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

From |
Jeph Herrin <jeph.herrin@yale.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: referencing eresult matrices |

Date |
Fri, 06 Nov 2009 08:26:13 -0500 |

The solution is only one line of code, so no big deal. Just curious if there was a syntax to get around it. cheers, Jeph Martin Weiss wrote:

<> [U], section 14.5., is the definite reference, and it uses the same technique as the one you showed, with the middleman present. If there was a way around it, I would expect it to be in there. You could probably write a few lines of code to cut out the middleman... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jeph Herrin Sent: Donnerstag, 5. November 2009 21:04 To: statalist@hsphsun2.harvard.edu Subject: st: referencing eresult matrices After an estimation, I often want to get a particular element of one of the result matrices, and know I can do it as follows: reg y x matrix b = e(b) di el("b",1,1) But there must be a way to eliminate the middleman b? This reg y x di el("e(b)",1,1) doesn't work, but I'm sure there's a way to reference e(b) so that I don't need to store it in another matrix first. In fact, I'm sure I knew it once, even. * * 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: referencing eresult matrices***From:*Jeph Herrin <junk@spandrel.net>

**st: RE: referencing eresult matrices***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: referencing eresult matrices** - Next by Date:
**st: AW: Constructing a variable: sum of a var over all j's (if j does not equal i)** - Previous by thread:
**st: RE: referencing eresult matrices** - Next by thread:
**Re: st: referencing eresult matrices** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |