Page 1 of 1

estimate and store rolling weak instrument stats

Posted: Tue Feb 01, 2011 9:21 am
by DOC12
Hi,

I have been able to run a rolling regression for instrumental variable estimation using e-views 7. I need to program a loop that will estimate and store weak instrument diagnostics for each of the windows. I am able to do this when estimating a single window/regression (using the weakinst command), the difficulty is doing it in a rolling context.

Thanks for your help in advance

Re: estimate and store rolling weak instrument stats

Posted: Tue Feb 01, 2011 9:34 am
by EViews Gareth
Have you read through the programming guide: http://forums.eviews.com/viewtopic.php?f=5&t=1638 ? It has similar examples.

Re: estimate and store rolling weak instrument stats

Posted: Tue Feb 01, 2011 10:24 am
by DOC12
Thanks!

Re: estimate and store rolling weak instrument stats

Posted: Sat Feb 05, 2011 4:13 pm
by DOC12
Hi Gareth,

Thanks for for your previous help. I wanted to find out what string can be used to call cragg-donald statistics(weak instruments diagnostics f-stats) into a matrix. e.g @coefs.....coefficient vector. I have checked the object reference but i wasnt lucky.

Thanks

estimate and store rolling weak instrument stats

Posted: Sat Feb 05, 2011 5:24 pm
by EViews Gareth
You have to freeze the output into a table then grab the table cell corresponding to the stat you want.

Re: estimate and store rolling weak instrument stats

Posted: Sun Feb 06, 2011 1:01 am
by DOC12
Thanks for your response. I have actually tried using the freeze command. Since It's a rolling window context, the software froze each weak instruments page as it estimated each window. When the frozen pages numbered about twenty, the computer declared that too many pages were open. If I had had to freeze over 100 windows and transfer the stat from each window into a matrix, that would prove really cumbersome. Is there any other way to do this?
Thanks

Re: estimate and store rolling weak instrument stats

Posted: Sun Feb 06, 2011 9:28 am
by startz
You could just delete each window after you've grabbed what you need.

Re: estimate and store rolling weak instrument stats

Posted: Sun Feb 06, 2011 10:51 am
by EViews Gareth
Or, you could freeze into the same table each time, using the mode = overwrite option.

Re: estimate and store rolling weak instrument stats

Posted: Sun Feb 06, 2011 1:41 pm
by DOC12
Thank you both for your suggestions