I would like to contract my workfile and exclude all obsid>4928616. I entered the following statement in the Wokfile Contract option, but it does not have any effect.
Code: Select all
01/01/1995 01/01/2015 if @obsid<4928617Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Code: Select all
01/01/1995 01/01/2015 if @obsid<4928617Code: Select all
pagecontract if @obsid<4928617That did not work either.What happens when you write the following into the command line and run?You seem to have ~5 million observations, whereas EViews allows 4 million per series by default. So, if you have not changed the default settings (Options/General Options), then your series might not have those observations at all.Code: Select all
pagecontract if @obsid<4928617
I've got a daily date range from 1995 - 2015 with 1020 cross section units, with 4948020 observations (unique in time and cross section) in total.obsid refers to the "time" dimension. Do you have more than 4,982,617 observations per cross-section. If you don't, then contracting based on obsid will do nothing.
Code: Select all
pagecontract if @crossid<500
Thanks Gareth, that worked.Base it on the cross-section number.
If you want to remove all cross-sections over 500, then use:Code: Select all
pagecontract if @crossid<500
Users browsing this forum: No registered users and 1 guest