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

st: Re: retrieving the results from DFGLS


From   "Dev Vencappa" <[email protected]>
To   <[email protected]>
Subject   st: Re: retrieving the results from DFGLS
Date   Fri, 17 Oct 2003 14:33:24 +0100

Stata users, 

 I have a small problem within a loop. I have estimated a variable using the command dfgls

dfgls variable1

I saved the lag order at the minimum of the MAIC into a scalar

scalar x=r(maiclag)

* and I saved all the statistics into a matrix

matrix y=r(results) 

Now I want to be able to retrieve the DFGLS statistic from matrix y if the value of the lag k within that matrix equals the value of the scalar x and call both into a variable that I can see within the data editor

I am not conversent with calling matrix values in stata. 

Any sugestion please?


many thanks
Dev


Dev Vencappa
School of Economics
University of Nottingham
University Park
Nottingham
NG7 2RD
U.K.
Tel : +44 (0)115 951 5608
Fax: +44 (0) 115 951 4159

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