Hi,
I want to create 'previous dec=100' index. I create in Excel a dummy series with value 1 if month=January else 0.
My code:
if dummy=1 then
prev_dec=cpi/cpi(-1)*100
else
prev_dec=prev_dec(-1)*(cpi/cpi(-1))
endif
but it does not work
generating series with if condition
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Who is online
Users browsing this forum: No registered users and 2 guests
