Is there any function that allows to calculate the rolling product of the past n obervations? (in a similar way to @movsum or @movcor, something like @prod but with the rolling concept). I have monthly inflation rates and I want to calculate the index y/y value (i.e. the product of (1+i1)(1+i2)(1+i3)...(1+i12) -1).
Thanks,
Javier
rolling product
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Re: rolling product
Something like the following should do the trick:
Code: Select all
series yoy = 100*(exp(@movsum(log(1+inf/100),12))-1)Who is online
Users browsing this forum: No registered users and 2 guests
