FOR Loop!

For questions regarding programming in the EViews programming language.

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

amunizs
Posts: 1
Joined: Wed Jul 13, 2016 12:00 pm

FOR Loop!

Postby amunizs » Wed Jul 13, 2016 1:04 pm

Hi,

I'm actually quite new at programming. To be honest, I don't know much about the subject. I am working on my dissertation at the moment and using a bit database.

For one of the steps I need to run regressions for a great amount of companies against a couple of indices and two more time series. I am trying to build a FOR loop that helps me do this at once and saves one of the coefficients on this new variable that I created.

I would really appreciate if anyone could help me with this.

My data has the dates on the first column and on the first row I have an identifier "firm_name of the companyX" the rest is filled with returns on each stock.

Could anyone tell me if this is anyhow closed to how my FOR should look like? Thanks!


For !columns = @columns(group1)

equation column(group1) c IndVariable1 IndVariable2 IndVariable3 IndVariable4 #Trying to regress each column with the other variables

----------how to save the coefficient from variable lets say 2 into a new series??


next

Notes: group1 - group with all the returns for all the firms analysed <-- is it correct to do that?

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

Re: FOR Loop!

Postby EViews Gareth » Wed Jul 13, 2016 2:30 pm

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests