Hi everyone,
In my dataset I have the date when certain loans where given, and using the date commands I managed to create one variable for each part of the date (variables: day month year). So now I need a dummy variable for each combination of month and year variable (f.e dummy1=Month1Year1, dummy2=Month2Year1, ..., dummy155=Month12Year13). With the tabulate command I managed to create the dummies for the 12 months and the dummies for the 13 years, but now I have problems in order to create the 155 dummies combination variables. Does somebody know how to do it? I've tried it with foreaches loops but it gives me errors every time.
Thanks in advance
In my dataset I have the date when certain loans where given, and using the date commands I managed to create one variable for each part of the date (variables: day month year). So now I need a dummy variable for each combination of month and year variable (f.e dummy1=Month1Year1, dummy2=Month2Year1, ..., dummy155=Month12Year13). With the tabulate command I managed to create the dummies for the 12 months and the dummies for the 13 years, but now I have problems in order to create the 155 dummies combination variables. Does somebody know how to do it? I've tried it with foreaches loops but it gives me errors every time.
Thanks in advance
Comment