Drop insignificant variables and reeestimate equation

For questions regarding programming in the EViews programming language.

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

miksterz1
Posts: 33
Joined: Fri May 20, 2011 5:20 am

Drop insignificant variables and reeestimate equation

Postby miksterz1 » Fri Sep 02, 2011 8:50 am

Hello,

I am running a loop that estimates an equation for each of 29 series. Amongst the regressors are 12 seasonal dummies(@seas) since I am working with non-seasonally adjusted monthly data. Having estimates these equations, I would like to write some code that drops those seasonal dummies in each equation that are not statistically significant, and re estimates the equations accordingly.

Any guidance would be appreciated. At the moment I'm not sure what sort of commands I should be looking in to.

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

Drop insignificant variables and reeestimate equation

Postby EViews Gareth » Fri Sep 02, 2011 3:21 pm

Use the built in stepwise estimation routine.

miksterz1
Posts: 33
Joined: Fri May 20, 2011 5:20 am

Re: Drop insignificant variables and reeestimate equation

Postby miksterz1 » Wed Sep 07, 2011 8:10 am

Thanks, Gareth. I've got it working but have one problem. I want to use @spec to save the specification of each estimation. However, when I use @spec after the stepwise function, it saves the specification that includes all the search regressors as opposed to the final selected regressors that I am interested in. Any way around this?

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

Drop insignificant variables and reeestimate equation

Postby EViews Gareth » Wed Sep 07, 2011 8:15 am

I'm in the middle of the Peruvian jungle and don't have EViews handy, but you could try @varlist. I that doesn't work, you'll have to hope Glenn has something clever :D

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Drop insignificant variables and reeestimate equation

Postby EViews Glenn » Wed Sep 07, 2011 11:45 am

@varlist it is...

The @spec contains what you specified, the @varlist contains the information associated with the equation you ended up estimating.

As for the Peruvian jungle, we don't believe him. We're convinced it's Photoshop.

miksterz1
Posts: 33
Joined: Fri May 20, 2011 5:20 am

Re: Drop insignificant variables and reeestimate equation

Postby miksterz1 » Mon Sep 12, 2011 7:02 am

Thanks, that worked perfectly. Enjoy the jungle!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest