I'm trying to create pages based on cross sectional attributes (my cross-sections are countries and I want to create a new page and sample if countries are in a specific region, like Asia of Latin America.
The code is the following:
Code: Select all
%sub_region = @wjoin(@uniquevals(sub_region_code))
for %i {%sub_region}
pageselect Baseline
pagecopy(page={%i},nolinks)
smpl if sub_region_code=%i
next
But Eviews outputs the following error (SUBAFR is my first sub_region, in all caps):
Code: Select all
Error in Sample: SUBAFR is not defined in "SMPL IF
SUB_REGION_CODE=SUBAFR".
Is anyone having the same issues? this is EViews 10.
Thanks!