estimate and store rolling weak instrument stats

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

DOC12
Posts: 8
Joined: Mon Jan 31, 2011 5:23 pm

estimate and store rolling weak instrument stats

Postby DOC12 » Tue Feb 01, 2011 9:21 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: estimate and store rolling weak instrument stats

Postby EViews Gareth » Tue Feb 01, 2011 9:34 am

Have you read through the programming guide: http://forums.eviews.com/viewtopic.php?f=5&t=1638 ? It has similar examples.

DOC12
Posts: 8
Joined: Mon Jan 31, 2011 5:23 pm

Re: estimate and store rolling weak instrument stats

Postby DOC12 » Tue Feb 01, 2011 10:24 am

Thanks!

DOC12
Posts: 8
Joined: Mon Jan 31, 2011 5:23 pm

Re: estimate and store rolling weak instrument stats

Postby DOC12 » Sat Feb 05, 2011 4:13 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

estimate and store rolling weak instrument stats

Postby EViews Gareth » Sat Feb 05, 2011 5:24 pm

You have to freeze the output into a table then grab the table cell corresponding to the stat you want.

DOC12
Posts: 8
Joined: Mon Jan 31, 2011 5:23 pm

Re: estimate and store rolling weak instrument stats

Postby DOC12 » Sun Feb 06, 2011 1:01 am

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3796
Joined: Wed Sep 17, 2008 2:25 pm

Re: estimate and store rolling weak instrument stats

Postby startz » Sun Feb 06, 2011 9:28 am

You could just delete each window after you've grabbed what you need.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: estimate and store rolling weak instrument stats

Postby EViews Gareth » Sun Feb 06, 2011 10:51 am

Or, you could freeze into the same table each time, using the mode = overwrite option.

DOC12
Posts: 8
Joined: Mon Jan 31, 2011 5:23 pm

Re: estimate and store rolling weak instrument stats

Postby DOC12 » Sun Feb 06, 2011 1:41 pm

Thank you both for your suggestions


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests