Finding dead/unused series

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

ah00277
Posts: 1
Joined: Fri Apr 12, 2019 3:02 am

Finding dead/unused series

Postby ah00277 » Fri Apr 12, 2019 7:41 am

Hi,

I have a large-scale macroeconomic model which is hosted in eviews. The workfile contains a large number of 'dead' series that are no longer used in the model object. Is there any way to systematically identify those series so that the workfile can be tidied up?

Thanks in advance

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

Re: Finding dead/unused series

Postby EViews Gareth » Fri Apr 12, 2019 8:33 am

Code: Select all

model.@varlist

will return a list of the variables in the model (For the current scenario, if you're worried about removing scenario variables, you'll have to loop through the scenarios returning a list of all variables).

Once you have a list of all variables in the model, you could use a combination of @wlookup and @wnotin to get a list of all variables in the workfile that are not in the model, and delete them.
Follow us on Twitter @IHSEViews


Return to “Models”

Who is online

Users browsing this forum: No registered users and 1 guest