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/