I want to apply a hp-filter to all of my series in a pool. In the Command Reference I did not find the "pool-command".
I tried for my pool named "all":
for %d gdp s pi con
all.hpf(lambda=100) {%d}? {%d}_hp?
next
however, this does not work. How can I solve this problem?
A related question: I am not interested in the smoothed series, but in the cycle. Can EViews give me the cycles directly, or do I have to make the calculation: hpcycle = variable - hptrend?
Thank's in advance.
HP-filter for pooled series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: HP-filter for pooled series
I suggest you to treat them as if they were ordinary series. For instance, if you have three identifiers (e.g. a, b and c) you can write a code like this:
Code: Select all
for %d gdp s pi con
for %id a b c
hpf(lambda=100) {%d}{%id} {%d}{id}_hp
series {d}{id}_c = {%d}{%id}-{%d}{id}_hp
next
nextRe: HP-filter for pooled series
Thank you for your help! :)
Who is online
Users browsing this forum: No registered users and 2 guests
