Page 1 of 1

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

Posted: Wed Dec 09, 2020 12:12 pm
by lotusfr
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 23201 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

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

Posted: Wed Dec 09, 2020 1:47 pm
by EViews Gareth
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.