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
Regression Using Group of Lagged Series
Moderators: EViews Gareth, EViews Moderator
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Regression Using Group of Lagged Series
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).
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).
Re: Regression Using Group of Lagged Series
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.
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
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:
Then use pcx as your regressor group.
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
Re: Regression Using Group of Lagged Series
that works. Thanks Eviews Gareth
Who is online
Users browsing this forum: No registered users and 2 guests
