vlookup like function

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

cselefendi
Posts: 1
Joined: Fri Jan 30, 2015 7:32 am

vlookup like function

Postby cselefendi » Fri Jan 30, 2015 7:41 am

hi everyone!

I'm trying to do a simulation with the following structure and ran into a problem on how to do a vlookup like task.

I am trying to compute c = s(t, i) * p(t, i, j),
where c is consumption, t is temperature, i and j are time-of-year and time-of-day variables.

The s() and p() functions' values are given in a matrix: for each t (row) and i and j (colums) the value is given.
I have 1000x618 simulations for t, so I'm looking for a fast way to compute c for each t, i and j variations.

In Excel I would use vlookup functions on the matrices but cannot find a suitable function in EViews.

The data looks like the example file uploaded.

Can somebody help me, please? I would appreciate this very much!
Thanks in advance.

Best,
cselefendi
Attachments
data_example.gif
Example of the data. More scenarios for t (1000 in total) and more days (618 in total).
data_example.gif (16.14 KiB) Viewed 2329 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: vlookup like function

Postby EViews Gareth » Fri Jan 30, 2015 9:05 am

Not sure I understand what you're trying to do.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests