Use a scalar in a series name

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

lpando08
Posts: 29
Joined: Tue Apr 03, 2018 1:13 pm

Use a scalar in a series name

Postby lpando08 » Mon Jun 04, 2018 8:09 am

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

EViews Matt
EViews Developer
Posts: 301
Joined: Thu Apr 25, 2013 7:48 pm

Re: Use a scalar in a series name

Postby EViews Matt » Mon Jun 04, 2018 8:52 am

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 5 guests