Hi everybody
I'm using Eviews 7.2 and a stacked panel dataset.
How does Eviews estimate the coefficients of the var/vecm model in a panel setting? Is the var/vecm estimated for each crosssectionentity separately and afterwards the coefficients are averaged? I don't need to know the exact formulas, only the concept.
Thanks a lot for advice!
Cheers, Harry
var/vecm with a stacked panel data set
Moderators: EViews Gareth, EViews Moderator

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 10510
 Joined: Tue Sep 16, 2008 5:38 pm
Re: var/vecm with a stacked panel data set
The VAR/VEC estimation in EViews is not panel style estimation. It performs exactly the same calculations that would be performed if the data was just regular stacked data, apart from the fact that EViews know where lags end (i.e. the lags will not go across crosssections).
Follow us on Twitter @IHSEViews

 Posts: 5
 Joined: Thu Aug 11, 2011 11:20 pm
Re: var/vecm with a stacked panel data set
Hi Gareth
Thanks a lot for the quick answer!
I still haven't figured out how Eviews can display one coefficient per variable (and time lag) in the var/vecm. How can Eviews consider stacked data as a time series of one country (e.g.)?
Thanks a lot for the quick answer!
I still haven't figured out how Eviews can display one coefficient per variable (and time lag) in the var/vecm. How can Eviews consider stacked data as a time series of one country (e.g.)?

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 10510
 Joined: Tue Sep 16, 2008 5:38 pm
Re: var/vecm with a stacked panel data set
I'm not sure I understand your question.
Follow us on Twitter @IHSEViews

 Posts: 5
 Joined: Thu Aug 11, 2011 11:20 pm
Re: var/vecm with a stacked panel data set
time: t = 1,...,T
crosssection: i = 1,...,N
A time series first order var would look like this:
y(t) = a1 + b11y(t1) + b12x(t1) + c1(t)
x(t) = a2 + b21y(t1) + b22x(t1) + c2(t)
The coefficients a1, b11 etc. would be estimated by using OLS for the y(t)equation and the x(t)equation.
A panel first order var could look like this:
y(1,t) = a11 + b111y(1,t1) + b112x(1,t1) + c11(t)
y(2,t) = a21 + b211y(2,t1) + b212x(2,t1) + c21(t)
...
y(N,t) = aN1 + bN11y(N,t1) + bN12x(t1) + cN1(t)
x(1,t) = a12 + b121y(1,t1) + b122x(1,t1) + c12(t)
x(2,t) = a22 + b221y(2,t1) + b222x(2,t1) + c22(t)
...
x(N,t) = aN2 + bN21y(n,t1) + bN22x(n,t1) + cN2(t)
If each equation would be estimated by using OLS you would get different coefficients for each crosssection.
I guess Eviews doesn't consider different coefficients for each crosssection, so we have:
y(1,t) = a1 + b11y(1,t1) + b12x(1,t1) + c1(t)
y(2,t) = a1 + b11y(2,t1) + b12x(2,t1) + c1(t)
...
y(N,t) = a1 + b11y(N,t1) + b12x(N,t1) + c1(t)
x(1,t) = a2 + b21y(1,t1) + b22x(1,t1) + c2(t)
...
x(N,t) = a2 + b21y(N,t1) + b22x(N,t1) + c2(t)
Does Evies estimate these coefficients by pooled OLS (minimizing the sum of squares for all t an i)?
Sorry for the confusing display, I don't know how to incorporate mathematical formulas into my post.
crosssection: i = 1,...,N
A time series first order var would look like this:
y(t) = a1 + b11y(t1) + b12x(t1) + c1(t)
x(t) = a2 + b21y(t1) + b22x(t1) + c2(t)
The coefficients a1, b11 etc. would be estimated by using OLS for the y(t)equation and the x(t)equation.
A panel first order var could look like this:
y(1,t) = a11 + b111y(1,t1) + b112x(1,t1) + c11(t)
y(2,t) = a21 + b211y(2,t1) + b212x(2,t1) + c21(t)
...
y(N,t) = aN1 + bN11y(N,t1) + bN12x(t1) + cN1(t)
x(1,t) = a12 + b121y(1,t1) + b122x(1,t1) + c12(t)
x(2,t) = a22 + b221y(2,t1) + b222x(2,t1) + c22(t)
...
x(N,t) = aN2 + bN21y(n,t1) + bN22x(n,t1) + cN2(t)
If each equation would be estimated by using OLS you would get different coefficients for each crosssection.
I guess Eviews doesn't consider different coefficients for each crosssection, so we have:
y(1,t) = a1 + b11y(1,t1) + b12x(1,t1) + c1(t)
y(2,t) = a1 + b11y(2,t1) + b12x(2,t1) + c1(t)
...
y(N,t) = a1 + b11y(N,t1) + b12x(N,t1) + c1(t)
x(1,t) = a2 + b21y(1,t1) + b22x(1,t1) + c2(t)
...
x(N,t) = a2 + b21y(N,t1) + b22x(N,t1) + c2(t)
Does Evies estimate these coefficients by pooled OLS (minimizing the sum of squares for all t an i)?
Sorry for the confusing display, I don't know how to incorporate mathematical formulas into my post.

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 10510
 Joined: Tue Sep 16, 2008 5:38 pm
var/vecm with a stacked panel data set
It does least squares on the stacked data, which is equivalent to your 2nd specification.
Follow us on Twitter @IHSEViews
Re: var/vecm with a stacked panel data set
Thanks for the clarification. This is pretty helpful for me.
However, one final thing remains: Is it really true that Eviews estimates a single constant per equation? In other words, there are no fixedeffects estimated. Right?
However, one final thing remains: Is it really true that Eviews estimates a single constant per equation? In other words, there are no fixedeffects estimated. Right?

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 10510
 Joined: Tue Sep 16, 2008 5:38 pm
Re: var/vecm with a stacked panel data set
Hi everybody,
is it possible to use EViews to estimate a pooled panel VAR with fixed effects? How would I include these? At the moment my data is stacked so I don't see how to include dummies.
I would highly appreciate your help!
Thanks,
Bobi
is it possible to use EViews to estimate a pooled panel VAR with fixed effects? How would I include these? At the moment my data is stacked so I don't see how to include dummies.
I would highly appreciate your help!
Thanks,
Bobi

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 10510
 Joined: Tue Sep 16, 2008 5:38 pm
Re: var/vecm with a stacked panel data set
As already mentioned, EViews doesn't have specific panel VAR estimation built in. If you want fixed effects, and are happy using standard OLS on the stacked data, you'll have to create dummy variables yourself.
Follow us on Twitter @IHSEViews
Re: var/vecm with a stacked panel data set
Hello, I am also wanting to include fixed effects in a VAR model but am coming up with similar technical problems when attempting to include dummies in the VAR specification  eg"Near singular matrix"
I have developed an approach to this issue, and would appreciate feedback on its robustness, or any flaws etc.
You can do VAR analysis without using the VAR tool in EViews, rather by simply entering in the equation one dependent variable at a time. So to test a VAR relationship between X Y and Z using 3 lags you can enter the equations
ls x c x(1) x(2) x(3) y(1) y(2) y(3) z(1) z(2) z(3)
and so on for the other terms y and z.
Thus if you have panel data, by estimating a VAR in this way you can opt to include fixed effects as part of the estimation process.
You can also opt to include period effects. I have not heard of period effects being incorporated into a VAR analysis but I can't see why they shouldn't be, when you have panel data.
With this approach you lose access to the other analytical features built in to the EViews VAR module, but at least you can do fixed effects!
Comments appreciated.
I have developed an approach to this issue, and would appreciate feedback on its robustness, or any flaws etc.
You can do VAR analysis without using the VAR tool in EViews, rather by simply entering in the equation one dependent variable at a time. So to test a VAR relationship between X Y and Z using 3 lags you can enter the equations
ls x c x(1) x(2) x(3) y(1) y(2) y(3) z(1) z(2) z(3)
and so on for the other terms y and z.
Thus if you have panel data, by estimating a VAR in this way you can opt to include fixed effects as part of the estimation process.
You can also opt to include period effects. I have not heard of period effects being incorporated into a VAR analysis but I can't see why they shouldn't be, when you have panel data.
With this approach you lose access to the other analytical features built in to the EViews VAR module, but at least you can do fixed effects!
Comments appreciated.
Who is online
Users browsing this forum: Yahoo [Bot] and 5 guests