Deleting Value Maps

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Lama
Posts: 15
Joined: Tue Oct 28, 2008 12:07 am

Deleting Value Maps

Postby Lama » Fri Jan 23, 2009 3:36 am

Dear all,

once again I'm stuck.

I want to delete the value maps of all series in my work file. (I recoded at least some of my variables so the value maps don't make any sense anymore.)

Based on a program you showed me I "worked" out the following:

group allvars *
allvars.drop resid

for !i=1 to allvars.count
allvars.@seriesname(!i).map
next


which actually didn't worked out..(While it does SOMETHING it doesn't fulfill the intended task) :-(


Gratefully yours

Lama

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

Re: Deleting Value Maps

Postby EViews Gareth » Fri Jan 23, 2009 9:09 am

Change your inner loop to:

allvars(!i).map

Lama
Posts: 15
Joined: Tue Oct 28, 2008 12:07 am

Re: Deleting Value Maps

Postby Lama » Thu Feb 26, 2009 9:57 am

Hi Garet,

thanks for your suggestion. I substituted the term, but now EVIEWS returns:

Syntax Error in "ALLVARS(1).MAP"

???

Best regards

Lama

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

Re: Deleting Value Maps

Postby EViews Gareth » Thu Feb 26, 2009 10:17 am

ok, try:

for !i=1 to allvars.count
%name = allvars.@seriesname(!i)
{%name}.map
next


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests