Storing significant AR coefficients
Posted: Mon Jul 07, 2014 2:41 am
Hi everyone!
After running this simple regression, i would like to store the coefficients of those AR that are significant.
Here is the code:
Basically i would like to have a code "saying": "If AR(6) is significant (prob<0.05) then store its coefficient, ELSE check if AR(5) is significant then store its coefficient, ELSE check if AR(4) and so on..." :)) i hope you understood despite my poor english.
This is not the first time you help me, thank you very much for your support!!
After running this simple regression, i would like to store the coefficients of those AR that are significant.
Here is the code:
Code: Select all
for !p = 1 to 6
if !p = 1 then
%ar = "ar(1)"
else
%ar = %ar + "ar(" + @str(!p) + ")"
endif
equation eq{%name}_ar{!p}.ls {%name} c {%ar}
next
This is not the first time you help me, thank you very much for your support!!