Page 1 of 1

Use a scalar in a series name

Posted: Mon Jun 04, 2018 8:09 am
by lpando08
Hello,

I have this (below) and I want to construct scalar "f" with the scalar "deuda" that in numercis value is 73. But it does not work because when I try to construct scalar f it, Eviews doesnt'read "ssrt_deuda" which in fact is "ssrt_73" that I have previously compute in the program. How I can do this?

scalar min=@imin(a2) = 64
scalar deuda= min+9= 73
scalar f= (5.031087- ssrt_deuda ) / ssrt_deuda = (5.031087- ssrt_73 ) / ssrt_73

Thanks,

Luciana

Re: Use a scalar in a series name

Posted: Mon Jun 04, 2018 8:52 am
by EViews Matt
Hello,

Use variable replacement with {}'s. For example,

Code: Select all

scalar f= (5.031087- ssrt_{deuda} ) / ssrt_{deuda} = (5.031087- ssrt_73 ) / ssrt_73