Regression Using Group of Lagged Series

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

kszynkar
Posts: 45
Joined: Tue Feb 02, 2016 1:15 am
Location: Switzerland

Regression Using Group of Lagged Series

Postby kszynkar » Tue Feb 02, 2016 1:20 am

Hi,

I have a series called "wip" and a group called "x". Is it possible to do a regression using the set of series in x as independent variables and wip as the dependent variable?

Thanks

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Regression Using Group of Lagged Series

Postby EViews Glenn » Tue Feb 02, 2016 9:45 am

If I'm understanding the question correctly

equation eq1.ls whip c x

should do the trick. If you are doing this from the dialog, just enter the dependent WHIP, followed by the regressors (I've included the constant C).

kszynkar
Posts: 45
Joined: Tue Feb 02, 2016 1:15 am
Location: Switzerland

Re: Regression Using Group of Lagged Series

Postby kszynkar » Tue Feb 02, 2016 9:49 am

Ah, indeed it does. I'm actually trying to do:

equation wt_eq_s.ls @pc(wip) @pc(x)

which doesn't work. Without the "@pc" function it works.

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

Re: Regression Using Group of Lagged Series

Postby EViews Gareth » Tue Feb 02, 2016 9:59 am

Unfortunately you can not use functions of groups. Only functions of original series.

You can write a simple program that will make a group containing the functions of the series:

Code: Select all

group pcx for !i=1 to x.@count pcx.add @pc(x(!i)) next
Then use pcx as your regressor group.

kszynkar
Posts: 45
Joined: Tue Feb 02, 2016 1:15 am
Location: Switzerland

Re: Regression Using Group of Lagged Series

Postby kszynkar » Wed Feb 03, 2016 12:35 am

that works. Thanks Eviews Gareth


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests