Page 1 of 1

FOR Loop!

Posted: Wed Jul 13, 2016 1:04 pm
by amunizs
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?

Re: FOR Loop!

Posted: Wed Jul 13, 2016 2:30 pm
by EViews Gareth
Have you read through the guide?
http://forums.eviews.com/viewtopic.php?f=5&t=1638