Hello everyone,
I need to create a dummy variable for industry production for when the cycle is in bust and boom and I'm having a brain fart.
for example i created
generate DUM1990 = 0
replace DUM1990 = 1 if (Month>tm(1990m6) & Month<tm(1991m3))
But if specify the dummy variable to be for month it wont have an effect on my variable Industry production or will it?
If it doesn't how do i specify that my variable industry production takes the values of 1 between those dates and a value of 0 for all other dates?
I need to create a dummy variable for industry production for when the cycle is in bust and boom and I'm having a brain fart.
for example i created
generate DUM1990 = 0
replace DUM1990 = 1 if (Month>tm(1990m6) & Month<tm(1991m3))
But if specify the dummy variable to be for month it wont have an effect on my variable Industry production or will it?
If it doesn't how do i specify that my variable industry production takes the values of 1 between those dates and a value of 0 for all other dates?
Comment