Page 1 of 1

How can I quickly create weekly dummy variables?

Posted: Tue Mar 28, 2017 10:06 am
by elmst616
Hi,

I have weekly data and I'm interesting in introducing weekly dummies to examine for seasonality. I tried using @expand(@week, @dropfirst) but I get an error message. Is there some other way to do this?

Re: How can I quickly create weekly dummy variables?

Posted: Tue Mar 28, 2017 10:12 am
by EViews Gareth
@expand(@datepart(@date, "WW"), @dropfirst)

Re: How can I quickly create weekly dummy variables?

Posted: Tue Mar 28, 2017 10:17 am
by elmst616
EViews Gareth wrote:@expand(@datepart(@date, "WW"), @dropfirst)



This works very well. Thank you!