Modulos Function & Creating Dummy Variables

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Nuttela
Posts: 11
Joined: Thu Nov 20, 2014 4:14 am

Modulos Function & Creating Dummy Variables

Postby Nuttela » Thu Nov 20, 2014 4:24 am

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Modulos Function & Creating Dummy Variables

Postby EViews Gareth » Thu Nov 20, 2014 8:44 am

Code: Select all

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests