Get max observations of pages and create a new one

For questions regarding programming in the EViews programming language.

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

patrice
Posts: 18
Joined: Tue Oct 12, 2010 2:10 am

Get max observations of pages and create a new one

Postby patrice » Tue Feb 28, 2012 6:46 am

I want to create a new page with the number of observations = max(number of observations) of 2 other pages.
In this exemple, I want to create a new page with number of observations = 20 (max of 10 and 20)

Code: Select all

wfcreate(page=R) u 1 pagecreate(page=P0) u 10 series a=rnd pagecreate(page=P1) u 20 series a=rnd pageselect R pagecreate(page=Z) u ????

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

Get max observations of pages and create a new one

Postby EViews Gareth » Tue Feb 28, 2012 7:50 am

@obsrange will tell you how many observations are on the current page.

Pageselect lets you switch pages.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests