Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: ereturn question [Stata 8]


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: ereturn question [Stata 8]
Date   Tue, 3 May 2005 23:02:43 +0100

So far as I know I think the minimum way to get this 
using official Stata alone is to assign to a matrix
first: 

mat nu = e(nu) 
di nu[1,1] 

That can be automated so that you only have to 
type one line, but before publishing a hack to 
do it I would be interested to learn of one-line 
official Stata solutions. I've probably overlooked
something very simple. 

Nick 
[email protected] 

Bryan W. Griffin
 
> Running Stata 8.2
> 
> I am running a model in gllamm, and I want to access and save 
> results from 
> one of the matrices. When I type
> 
> matrix list e(nu)
> 
> I get this result:
> 
> e(nu)[1,2]
>          c1      c2
> r1   5550   1850
> 
> I would like to be able to display and save one value at a 
> time, such as
> 
> di "what here?"
> 
> to get 5550. With regression coefficients one can type "di _b[IV]" to 
> obtain a particular value. How do I issue the di command to 
> get only r1,c1 
> instead of both values?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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