Page 1 of 1

Finding dead/unused series

Posted: Fri Apr 12, 2019 7:41 am
by ah00277
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

Re: Finding dead/unused series

Posted: Fri Apr 12, 2019 8:33 am
by EViews Gareth

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.