Difference between EViews and R.

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

yanivd
Posts: 13
Joined: Sat May 03, 2014 12:37 pm

Difference between EViews and R.

Postby yanivd » Wed May 07, 2014 8:37 am

Hello,

By any chance, does anyone know if there is a fundamental difference between EViews' unrestricted VAR procedure and the VAR function (vars package) in R?
I am running the exact same model over the exact same data and getting different results (coefficients).

Thanks!

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

Re: Difference between EViews and R.

Postby EViews Gareth » Wed May 07, 2014 8:39 am

A simple unrestricted VAR is just a set of OLS equations. There should be no difference, assuming you have specified both identically.

Perhaps you could post your results and/or data.

yanivd
Posts: 13
Joined: Sat May 03, 2014 12:37 pm

Re: Difference between EViews and R.

Postby yanivd » Wed May 07, 2014 9:09 am

Yes, that's why I am confused.

I can't post the data, it is proprietary, but the call in R is simply:

VAR(data, p = 5, type = "const",season=24)

And in EViews I simply estimate using the "Estimate" command and add "c" and a seasonal dummy to the exog. variables.

Maybe it is in how the VAR function handles seasonality?

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

Re: Difference between EViews and R.

Postby EViews Gareth » Wed May 07, 2014 9:26 am

Yep, my guess would be that the seasonal dummy in R is different from the seasonal dummy you're using. I don't know enough about the R code to speculate further though.

Try it without the seasonal term and make sure the results are identical then.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests