How to create user event in MoveReg for Chinese new year?

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

lotusfr
Posts: 9
Joined: Mon Jul 13, 2020 1:41 am

How to create user event in MoveReg for Chinese new year?

Postby lotusfr » Wed Dec 09, 2020 12:12 pm

Hi,

I am using MoveReg Seasonal adjustment function and I want to add Chinese new year holidays.

help page.PNG
help page.PNG (83.82 KiB) Viewed 13218 times


The help page said
"The User Events edit field can be used to specify your own holidays/events. Simply enter the name of one or more series in the workfile containing binary information on whether an observation is a holiday/event or not."

I am confused about this. Say 25/01/2020 and 05/02/2019 are the dates for Chinese new years, how to create this user events?

Thanks a lot.

Best,
Rong

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

Re: How to create user event in MoveReg for Chinese new year?

Postby EViews Gareth » Wed Dec 09, 2020 1:47 pm

Create a new series in your workfile containing zeroes and non-zero values for holiday effects.

The simplest approach would be:

Code: Select all

series myholiday = (@date=@dateval("2020/01/25")) or (@date=@dateval("2019/02/05"))

But of course, you might want to put a value of 0.5 on 2020/01/25 and a value of 0.5 on 2020/01/04 or something.
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 16 guests