Page 1 of 1

regression in loop structure and saving results

Posted: Sun Jun 20, 2010 12:19 pm
by kelaynak
Hello,
I am new in programming. May be my question so simple. If you help me, I really appreciate your help.

I want do several regresiion in a loop structure for the below model for finding best AR MA parameters. I want to get all AIC, SBC, adj R2 and probabilities of coefficients (a0,a1,a2,a3) in a table after regressing. Then I will choose right model comparing each model

Do i= 1, n
Do j= 1, m
ls Y= a0 +a1X + a2AR(i) + a3MA(j)
sending AIC,SBC Adj R2 and prbablities of coeeficient to a table
continue

Is it possible with using programming in Eviews 7?

Thanks

Re: regression in loop structure and saving results

Posted: Sun Jun 20, 2010 2:00 pm
by EViews Gareth

Re: regression in loop structure and saving results

Posted: Mon Jun 21, 2010 5:13 am
by kelaynak
Thanks Gareth,
Especially the second viewtopic that you suggested contains the program that I needed :)
I just need to modify it to my system :D

I will add "@rbar2" for Adjusted R2 in program.
But what about, probabilities of all coefficient in regression equations? Is there any @ commnets for them?

I could not find it. But there is a comment for "@tstats(i)" for t-statistics for coefficient (i)
How can I convert it to p values?
Thanks

Re: regression in loop structure and saving results

Posted: Mon Jun 21, 2010 1:49 pm
by EViews Gareth
From the thread immediately beneath yours:
viewtopic.php?f=5&t=2549

Re: regression in loop structure and saving results

Posted: Mon Jun 21, 2010 2:41 pm
by kelaynak
Thanks Gareth.
But I could not find the translation formula from tstats to p in there?
I am remembering that in Eviews manual I see the transformation formula from tstats to p value, but I could not find it now.
If you know the formula, could you please give it?

Re: regression in loop structure and saving results

Posted: Mon Jun 21, 2010 3:01 pm
by EViews Gareth
@tdist