Saving variable names from stepwise
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Saving variable names from stepwise
I want to save the result from a stepwise regression in a matrix but I do not only need to know the coefficient values (@coefs) but I also need to know which variables were actually chosen. Can I also save the names of the selected variables?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Saving variable names from stepwise
As with all equations, you can use eq.@varlist to get a list of all of the variables included in the final equation.
Re: Saving variable names from stepwise
Is there a way I can get the resulting varlist converted to an alpha series? I'm trying to get the information in a format so I can save it to a SQL database using odbc.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Saving variable names from stepwise
You'd have to write a loop and populate the alpha series one at a time.
Re: Saving variable names from stepwise
Hello,I want to save the result from a stepwise regression in a matrix but I do not only need to know the coefficient values (@coefs) but I also need to know which variables were actually chosen. Can I also save the names of the selected variables?
how do you do a stepwise regression? I have been staring at this thing all day long and cant figure it out.
The people on this site are just wonderful, I hope someone can help.
Last edited by olivia33 on Sat Aug 25, 2012 8:42 pm, edited 1 time in total.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Saving variable names from stepwise
User Guide II has good instructions. Lookup stepwise in the index.
Who is online
Users browsing this forum: No registered users and 2 guests
