Page 1 of 2

Extracting Equation from Eviews to Excel

Posted: Thu Feb 11, 2010 5:32 am
by jiangsujie
Hello,

Eviews 7 has an excel plug-in that allows users to extract data from EViews workfiles. But i've found that the Excel plug-in can extract only series or Vectors, not equations or groups, does anyone know how to use Eviews plug-in in excel to extract them?

Thanks!

sujie

Re: Extracting Equation from Eviews to Excel

Posted: Thu Feb 11, 2010 8:56 am
by EViews Gareth
I'm not sure your question really makes much sense. Excel doesn't have an equivalent of an Equation object. How would EViews send it across?

Re: Extracting Equation from Eviews to Excel

Posted: Thu Feb 11, 2010 10:57 am
by EViews Steve
The EViews Excel Add In was meant to be a helpful utility in allowing users to access EViews data directly thru the new OLEDB driver. It is limited to those objects that can be read by the OLEDB driver.

Unfortunately, at this time, the OLEDB driver does not support reading group or equation objects. Support for reading groups may be added in near future.

Steve

Re: Extracting Equation from Eviews to Excel

Posted: Fri Feb 12, 2010 5:53 am
by jiangsujie
What i mean is that if Eviews equation estimations are updated regularly, it's a bit troublesome to copy and paste the parameters into excel manually, so the ability to access Eviews equations from Excel would be very helpful.

For now, do you have a solution for extracting equation parameters for a group of equations?

Thanks again!

I'm not sure your question really makes much sense. Excel doesn't have an equivalent of an Equation object. How would EViews send it across?

Re: Extracting Equation from Eviews to Excel

Posted: Fri Feb 12, 2010 7:39 am
by startz
Generally, the parameters are stored in the C vector. Can you send that across?

Re: Extracting Equation from Eviews to Excel

Posted: Fri Feb 12, 2010 9:03 am
by EViews Gareth
Startz is right. An Equation object could not be passed from EViews to another package, such as Excel, since Equations are somewhat unique to EViews. However, you can always pass the results of an Equation over to Excel, since you can generally put the results into Vector or Matrix objects, then pass those over.

Re: Extracting Equation from Eviews to Excel

Posted: Mon May 10, 2010 9:04 pm
by amina
Startz is right. An Equation object could not be passed from EViews to another package, such as Excel, since Equations are somewhat unique to EViews. However, you can always pass the results of an Equation over to Excel, since you can generally put the results into Vector or Matrix objects, then pass those over.
Hello Gareth! Could you please explain how to put the results from an equation into a Vector or Matrix? Thanks in advance!

Re: Extracting Equation from Eviews to Excel

Posted: Mon May 10, 2010 9:31 pm
by EViews Gareth

Code: Select all

matrix coefs = eq1.@coefs matrix cov = eq1.@coefcov
Where eq1 is the name of your equation. The other data members can be found in the equation section of the Object Reference.

Re: Extracting Equation from Eviews to Excel

Posted: Tue May 11, 2010 4:38 am
by amina

Code: Select all

matrix coefs = eq1.@coefs matrix cov = eq1.@coefcov
Where eq1 is the name of your equation. The other data members can be found in the equation section of the Object Reference.
Thanks for your fast reply Gareth!
I'm automating a regression evaluation by using Eviews from Visual Basic.Net. I'm able to send data to series, and executing an equation with the following command:
app.Run("LS LOG(MWH) @TREND H1 H2 H3 H4 H5 H6 H7 C ")

Do you know how to retrieve the coefficients returned by the equation, with VBnet?
Thank you very much!

Re: Extracting Equation from Eviews to Excel

Posted: Tue May 11, 2010 8:07 am
by EViews Steve
Make a small change to your Run command to actually create an equation object like this:

Code: Select all

app.Run("EQUATION EQ1.LS LOG(MWH) @TREND H1 H2 H3 H4 H5 H6 H7 C")
Then, to retrieve the parts, you don't actually have to create separate vectors/matrices. Just run:

Code: Select all

app.Get("=EQ1.@coefs")
or

Code: Select all

app.Get("=EQ1.@coefcov")
Steve

Re: Extracting Equation from Eviews to Excel

Posted: Tue May 11, 2010 8:10 am
by amina
Thank you very much Steve! I appreciate your help

Re: Extracting Equation from Eviews to Excel

Posted: Fri Dec 17, 2010 3:46 pm
by CharlesLogan
It would be very handy for Eviews to have the ability to export to Excel the Substituted Coefficient representation of an Equation as a STRING.

Re: Extracting Equation from Eviews to Excel

Posted: Fri Dec 17, 2010 4:24 pm
by EViews Glenn
It is. See the @subst data member of an equation. Put it in a table, and save to disk as a .csv which can be read by Excel.

Extracting Equation from Eviews to Excel

Posted: Fri Dec 17, 2010 4:39 pm
by EViews Gareth
Or use COM to send the string across to Excel

Re: Extracting Equation from Eviews to Excel

Posted: Fri May 31, 2013 11:02 am
by vkarora
"It is. See the @subst data member of an equation. Put it in a table, and save to disk as a .csv which can be read by Excel."

Is there anything similar for use with the one or more equations of a VAR object? Or possibly a workaround if such a command does not exist?

Thanks