Use a group of variables in a VAR system
Posted: Thu Jan 10, 2013 6:50 am
Hi Gareth,
I would like to solve a VAR of 3 variables but instead of entering the 3 variable names in the command line I would like to create a group and run it for the group of variables, so that if I change any variable then I just need to change it in the group. I have tried as follows but it is not working.
Thanks,
Gloria
FOR %i series1 series2 series3
GROUP VARM1
VARM1.add {%i}
NEXT
FOR !j=1 to VARM1.@count 'counter for the variables in the group
%inamem1 = VARM1.@seriesname(!j)
FOR !i=1 to 200
SMPL %startestim %endestim_m
VAR VAR01_!i
VAR01_!i.ls 1 6 {%inamem1}_!i
NEXT
NEXT
FOR %i deu_expsit1 d_deuorder deu_prod_t1
GROUP VARM1
VARM1.add {%i}
NEXT
FOR !j=1 to VARM1.@count 'counter for the variables in the group
%inamem1 = VARM1.@seriesname(!j)
I would like to solve a VAR of 3 variables but instead of entering the 3 variable names in the command line I would like to create a group and run it for the group of variables, so that if I change any variable then I just need to change it in the group. I have tried as follows but it is not working.
Thanks,
Gloria
FOR %i series1 series2 series3
GROUP VARM1
VARM1.add {%i}
NEXT
FOR !j=1 to VARM1.@count 'counter for the variables in the group
%inamem1 = VARM1.@seriesname(!j)
FOR !i=1 to 200
SMPL %startestim %endestim_m
VAR VAR01_!i
VAR01_!i.ls 1 6 {%inamem1}_!i
NEXT
NEXT
FOR %i deu_expsit1 d_deuorder deu_prod_t1
GROUP VARM1
VARM1.add {%i}
NEXT
FOR !j=1 to VARM1.@count 'counter for the variables in the group
%inamem1 = VARM1.@seriesname(!j)