Hi, everybody,
I'm quite new to EViews, so I'm sorry if ask a dumb question. I write my master thesis and I have to do a stacked cross-sectional regression (4 regressors) on a pool of yearly mutual fund data (148 mutual funds and 17 years in total). In order to capture some yearly effect I need to introduce about 17 dummies for the years in the regression equation. Can somebody explain me step by step how can I do this in EViews. I've already tried it but it seems that I do something wrong. I also don't find a suitable topic in this forum.
Thanx a lot. Steven.
Defining yearly dummy variables
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Defining yearly dummy variables
One approach is to includeHi, everybody,
I'm quite new to EViews, so I'm sorry if ask a dumb question. I write my master thesis and I have to do a stacked cross-sectional regression (4 regressors) on a pool of yearly mutual fund data (148 mutual funds and 17 years in total). In order to capture some yearly effect I need to introduce about 17 dummies for the years in the regression equation. Can somebody explain me step by step how can I do this in EViews. I've already tried it but it seems that I do something wrong. I also don't find a suitable topic in this forum.
Thanx a lot. Steven.
Code: Select all
@expand(@year)Another approach is to define all the dummies manually
Code: Select all
series d70=@recode(@year=1970,1,0)
series d71=@recode(@year=1971,1,0)Re: Defining yearly dummy variables
Hi, startz, thank You for the quick reply.One approach is to includeHi, everybody,
I'm quite new to EViews, so I'm sorry if ask a dumb question. I write my master thesis and I have to do a stacked cross-sectional regression (4 regressors) on a pool of yearly mutual fund data (148 mutual funds and 17 years in total). In order to capture some yearly effect I need to introduce about 17 dummies for the years in the regression equation. Can somebody explain me step by step how can I do this in EViews. I've already tried it but it seems that I do something wrong. I also don't find a suitable topic in this forum.
Thanx a lot. Steven.in the regression.Code: Select all
@expand(@year)
Another approach is to define all the dummies manuallyCode: Select all
series d70=@recode(@year=1970,1,0) series d71=@recode(@year=1971,1,0)
To the first approach I get a message from EViews: @expand is not defined!
MY r.h. s. of the regression looks like : RET?(-1) (RET?(-1))^2 NMF?(-1) LOG(FVOL?(-1)) LOG(AGE?(-1)) @EXPAND(@YEAR),
i.e. five regressors plus dummies.
If I use the second approach where should I type the Code (Genr, Estimate)?
Thank You very much. Steven
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Defining yearly dummy variables
What version of EViews are you using?Hi, startz, thank You for the quick reply.
To the first approach I get a message from EViews: @expand is not defined!
MY r.h. s. of the regression looks like : RET?(-1) (RET?(-1))^2 NMF?(-1) LOG(FVOL?(-1)) LOG(AGE?(-1)) @EXPAND(@YEAR),
i.e. five regressors plus dummies.
If I use the second approach where should I type the Code (Genr, Estimate)?
Thank You very much. Steven
Re: Defining yearly dummy variables
My EViews is 3.1 Student version :?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Defining yearly dummy variables
You probably don't have the @expand feature and may not have @recode either. You can do something likeMy EViews is 3.1 Student version :?
Code: Select all
genr d90=0
genr d91=0
smpl 90 90
d90=1
smpl 91 91
d91=1Re: Defining yearly dummy variables
Do You think the first approach will work in EViews 5? Which function should I use in EViews 5 i. o. to implement the second approach?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Defining yearly dummy variables
You'll have to check with tech support (which does monitor this board) to find out which version has which features. But even doing it the "hard way" is only 10 minutes work.Do You think the first approach will work in EViews 5? Which function should I use in EViews 5 i. o. to implement the second approach?
Re: Defining yearly dummy variables
O.K. I tried it the "hard way" and I get the message "Near singular matrix". Looks like my dummies explain some of the regressors because I don't have an interceipt, or is there some other reason for this message?You'll have to check with tech support (which does monitor this board) to find out which version has which features. But even doing it the "hard way" is only 10 minutes work.Do You think the first approach will work in EViews 5? Which function should I use in EViews 5 i. o. to implement the second approach?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Defining yearly dummy variables
Check to be sure you reset the sample to include all the data. If that doesn't do it, you might want to post your workfile, including the equation you have estimated, to see if someone can take a look.O.K. I tried it the "hard way" and I get the message "Near singular matrix". Looks like my dummies explain some of the regressors because I don't have an interceipt, or is there some other reason for this message?You'll have to check with tech support (which does monitor this board) to find out which version has which features. But even doing it the "hard way" is only 10 minutes work.Do You think the first approach will work in EViews 5? Which function should I use in EViews 5 i. o. to implement the second approach?
Re: Defining yearly dummy variables
O.K. thank You very much :)
Who is online
Users browsing this forum: No registered users and 2 guests
