MIDAS TRANSFORMATION

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

LeonardoMC
Posts: 9
Joined: Thu Jun 16, 2022 2:37 pm

MIDAS TRANSFORMATION

Postby LeonardoMC » Thu Apr 10, 2025 10:17 am

hI,

I'm trying to build a prg code to implement the U-midas transformation on a group of N monthly variables, that is, for each monthly variable n, it creates 3 quartely ones (n1, n2 and n3). The first will only collect the first motnhs for each quarter values (jan, apr, jul, oct), the second only the second months (feb, may, aug, nov) and the third only the third ones (mar, jun, sep, dec).

Can you help me with that?

Thanks in advance.

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

Re: MIDAS TRANSFORMATION

Postby EViews Gareth » Thu Apr 10, 2025 10:57 am

The copy command will do it automatically.

Here's an example

Code: Select all

!n = 5 'number of monthly variables wfcreate(page=monthly) m 1990 2025 for !i=1 to !n series y_!i=@rnorm next pagecreate(page=quarterly) q 1990 2025 copy(c=split) monthly\y* quarterly\y*

LeonardoMC
Posts: 9
Joined: Thu Jun 16, 2022 2:37 pm

Re: MIDAS TRANSFORMATION

Postby LeonardoMC » Wed Apr 16, 2025 8:21 am

Thanks a lot!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests