Page 1 of 1

Log quarterly transformation series

Posted: Thu Feb 23, 2017 2:51 am
by saranya
Hi,

I wanted to do a log quarterly transformation and hence wrote the below codes:
for !i= 1 to a.@count
%name = a.@seriesname(!i)
series temp= ({%name}(-3))
series {%name}_ld = log({%name})- log(temp)
delete temp
next

However, I get an error " Log of non-positive number- Missing data generated in the series"

I checked the series and has ensured that all the values are positive. The new series gets generated as well. Can you specify why this error keep coming?

Kindly help.

Re: Log quarterly transformation series

Posted: Thu Feb 23, 2017 4:55 am
by saranya
Got it fixed. Was due to series having "zeroes".