Strange sample setting behaviour in an undatead paneel workfile

For questions regarding programming in the EViews programming language.

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

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

Strange sample setting behaviour in an undatead paneel workfile

Postby mamo » Mon Sep 28, 2020 2:20 am

Dear Eviewers,

I use Eviews 11 Sept 2019 built 64 bit.

I detected some strange results when trying to set constrained samples in an undated panel page (details in the code below).
Is this a bug?
Best, mamo

Code: Select all

wfcreate a 2000 2010 2 pagestruct dateid crossid ' The following line works as expected smpl @all if crossid=1 '' Unexpectedly, the following line '' gives the warning message: '' "Sample contains no observations" '' Why is this so?' ' smpl @all if dateid=2009 '' The following line does not yield a warning '' But neither does it deliver the expected result: '' the page sample does not change ' smpl @all if dateid>2005 '' Why?

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

Re: Strange sample setting behaviour in an undatead paneel workfile

Postby EViews Gareth » Mon Sep 28, 2020 7:44 am

dateid is a date number, not a year number.

The year 2009 is actually the number 733407.

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

Re: Strange sample setting behaviour in an undatead paneel workfile

Postby mamo » Mon Sep 28, 2020 11:07 pm

All clear,
many thanks for the quick reply.
mamo


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests