Access Table Data in Formula?

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

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

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Access Table Data in Formula?

Postby kcaron » Fri Dec 04, 2015 9:02 am

Is it possible to write a formula that references a cell in a saved EViews table?

If so, what is the method for doing so?

Thanks!

-K

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

Re: Access Table Data in Formula?

Postby EViews Gareth » Fri Dec 04, 2015 9:21 am

Define what you mean by formula.

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Re: Access Table Data in Formula?

Postby kcaron » Fri Dec 04, 2015 9:58 am

Formula for a line... Where my independent variables are stored in a table and the coefficients are drawn from a regression equation.

dependent = regression.c(1) * independent + regression.c(2)

Where...

regression.C(1) is the coefficient and regression.C(2) is the constant from a saved regression equation (called "regression"), and
independent is some number that I make up and store in a table. (Let's say the table is called "mytable")

Thx!

K

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

Re: Access Table Data in Formula?

Postby EViews Gareth » Fri Dec 04, 2015 10:01 am

Sorry, what do you mean by "line"?

Are you trying to create a formula object?

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Re: Access Table Data in Formula?

Postby kcaron » Fri Dec 04, 2015 10:04 am

yes. sorry.

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

Re: Access Table Data in Formula?

Postby EViews Gareth » Fri Dec 04, 2015 10:06 am

You can refer to the table cell just from mytable(3,1). But the formula will not dynamically update every time the table updates. Formula objects only update when series do.

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Re: Access Table Data in Formula?

Postby kcaron » Fri Dec 04, 2015 10:37 am

Hmmmm...

I'll play around with it. Thank you!

-K


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests