new series - Max function
Posted: Wed Dec 20, 2017 7:01 am
Hi,
I have a series within a model which have some negative values, creating problems in an equation specified in logs. I would like to declare to take the max(series,0) for all the elements in the series, shall I create a new one? Or can I do it in the equation?
Example:
equation eq_AAA.ls log(AA) c log(@max(series,0))
That syntax gives an error. How is the best way to do it?
Thanks
I have a series within a model which have some negative values, creating problems in an equation specified in logs. I would like to declare to take the max(series,0) for all the elements in the series, shall I create a new one? Or can I do it in the equation?
Example:
equation eq_AAA.ls log(AA) c log(@max(series,0))
That syntax gives an error. How is the best way to do it?
Thanks