multiple dependent variables

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

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

multiple dependent variables

Postby gregjackson05 » Mon Apr 25, 2011 4:49 pm

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 Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: multiple dependent variables

Postby EViews Gareth » Mon Apr 25, 2011 4:57 pm

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

Postby gregjackson05 » Mon Apr 25, 2011 5:30 pm

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

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 11:18 am

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

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

Re: multiple dependent variables

Postby EViews Gareth » Tue Apr 26, 2011 11:20 am

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

Postby gregjackson05 » Tue Apr 26, 2011 11:29 am

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

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

Re: multiple dependent variables

Postby EViews Gareth » Tue Apr 26, 2011 11:38 am

So just write a loop that loops through your dependent variables, regressing each one. Something like:

Code: Select all

for %dep dep1 dep2 dep3 dep4 equation eq{%dep}.ls {%dep} c x1 x2 x3 next
Where dep1, dep2, dep3 and dep4 are your dependent variables, and x1 x2 x3 are your independent.

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 12:10 pm

Thanks, can I just cut and paste my company names into %dep ??

Greg

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

Re: multiple dependent variables

Postby EViews Gareth » Tue Apr 26, 2011 12:33 pm

Sure.

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 2:14 pm

I've tried to copy your instructions but getting "flow of control statement..."
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

Postby EViews Gareth » Tue Apr 26, 2011 2:26 pm

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.

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 2:58 pm

nevermind got it!

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 2:59 pm

sorry didn't see your last post, yeah that was my mistake

Thanks Greg

gregjackson05
Posts: 12
Joined: Mon Apr 25, 2011 4:33 pm

Re: multiple dependent variables

Postby gregjackson05 » Tue Apr 26, 2011 4:00 pm

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

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

Re: multiple dependent variables

Postby EViews Gareth » Tue Apr 26, 2011 4:08 pm

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


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests