i have two question:
1/ i have group named g1 with 14 series, (GDP, INF, @month=1, @month=2,....,@month=12) with my equation estmation ls stock c GDP INF @expand(@month), i want to rename the 12 last series (@month=1 will be dum1 and @month=2 will be dum2.....etc ) by this code i get error message "DUM is not defined in "GROUP G DUM" i know that my code is incomplete.
Code: Select all
group g dum
for !i=1 to 12
%oldname = g.@seriesname(!i)
%newname = dum!i
rename {%oldname} {%newname}
next
2/ suppose i estimate this model: ls stock c GDP INF @expand(@month), is there an other way to rename the 12 varaibles (@month=1,... @month=12) in equation object by (dum1,..... dum12).