Page 1 of 1

Modulos Function & Creating Dummy Variables

Posted: Thu Nov 20, 2014 4:24 am
by Nuttela
Hi,

I am have a data set that is not dated. I simply have 1,2,3,4,5 that represent monthly data. I need to create a dummy variable for each quarter. How can I do this? Should I use a @mod function?

Thank you in advance.

Re: Modulos Function & Creating Dummy Variables

Posted: Thu Nov 20, 2014 8:44 am
by EViews Gareth

Code: Select all

series q = @floor((m-1)/3)+1
Where m is the name of the series containing the month number.