multiple dependent variables
Moderators: EViews Gareth, EViews Moderator
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
multiple dependent variables
Hi
Eviews 6; I'm trying to run multiple regressions at once. I have about 1000 mutual fund companies and about 3 years of monthly returns.
I have tried OPEN - as SYSTEM but this only seems to allow me to run 30 - 50 regressions.
Is there a way to run all at once??
Cheers Greg
Eviews 6; I'm trying to run multiple regressions at once. I have about 1000 mutual fund companies and about 3 years of monthly returns.
I have tried OPEN - as SYSTEM but this only seems to allow me to run 30 - 50 regressions.
Is there a way to run all at once??
Cheers Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple dependent variables
Do you need to estimate them simultaneously from a theoretical point of view, or from a easy-of-use point of view? If the latter, you're probably best off writing a simple program that will estimate them all.
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
Hi Gareth,
Yeah I just want the quickest option, for both ends (sorting output and results).
Simple program sounds good, but I would not know where to start??
Greg
Yeah I just want the quickest option, for both ends (sorting output and results).
Simple program sounds good, but I would not know where to start??
Greg
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
Hi any help on top of the intro to programming would be appreciated.
I'm a little lost with the examples that use 'nrnd'.
My example is no doubt typical - list of companies and returns; regressed on a couple of constant independent variables.
how do I create my dependent variable???
Thanks Greg
I'm a little lost with the examples that use 'nrnd'.
My example is no doubt typical - list of companies and returns; regressed on a couple of constant independent variables.
how do I create my dependent variable???
Thanks Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple dependent variables
I'm not sure I understand your question. Surely you already have dependent variables and do not need to create them at all?
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
yes I have a list of companies and their returns that are my dependents.
I'm struggling for the terminology to explain.....
lots of dependent variables - 3 constant independents.
Greg
I'm struggling for the terminology to explain.....
lots of dependent variables - 3 constant independents.
Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple dependent variables
So just write a loop that loops through your dependent variables, regressing each one. Something like:
Where dep1, dep2, dep3 and dep4 are your dependent variables, and x1 x2 x3 are your independent.
Code: Select all
for %dep dep1 dep2 dep3 dep4
equation eq{%dep}.ls {%dep} c x1 x2 x3
next
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
Thanks, can I just cut and paste my company names into %dep ??
Greg
Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
I've tried to copy your instructions but getting "flow of control statement..."
I appreciate any help.
Greg
I appreciate any help.
Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple dependent variables
EViews programming code needs to be written in EViews programs. Click on File->New Program.
Perhaps you should read the programming chapter of the EViews Command and Programming Reference.
Perhaps you should read the programming chapter of the EViews Command and Programming Reference.
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
nevermind got it!
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
sorry didn't see your last post, yeah that was my mistake
Thanks Greg
Thanks Greg
-
gregjackson05
- Posts: 12
- Joined: Mon Apr 25, 2011 4:33 pm
Re: multiple dependent variables
Hi, just when I thought I was there now I'm faced with maximum line length error. What is max. number of dependent variables allowed? I have tried reducing my dependent name size to shorten command line??
Cheers Greg
Cheers Greg
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple dependent variables
Run it through more than one loop then.
Code: Select all
for %dep dep1 dep2 dep3 dep4
equation eq{%dep}.ls {%dep} c x1 x2 x3
next
for %dep dep100 dep101 dep102 dep103
equation eq{%dep}.ls {%dep} c x1 x2 x3
next
Who is online
Users browsing this forum: No registered users and 2 guests
