Seasonal dummy variables
Posted: Sat Oct 11, 2008 11:37 am
I know that I can create seasonal dummy variables such as
genr jan=@seas(1)
genr feb=@seas(2)
and so forth...if I am working with monthly data.... how can I create a dummy variable for indicating years in which presidential elections take place? Since this is once every 4 years and jan once every 4 years is fine....how do I do it?
I tried...
genr preselecyr=@seas(48) and I get that ugly singular matrix error.
genr jan=@seas(1)
genr feb=@seas(2)
and so forth...if I am working with monthly data.... how can I create a dummy variable for indicating years in which presidential elections take place? Since this is once every 4 years and jan once every 4 years is fine....how do I do it?
I tried...
genr preselecyr=@seas(48) and I get that ugly singular matrix error.