converting data from excel to eviews

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

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

converting data from excel to eviews

Postby dissertationdan » Thu Sep 04, 2014 6:55 am

Hello,

I am writing my dissertation on mutual funds and whether returns are affected by their position with a financial centre (modeled by a dummy variable). I wish first to use a fama-french model:

r_i - r_f = alpha +b1exrm + b2hml + b3smb + e_i

to adjust returns for risk. Then I will regress these returns on the dummy variable. However I am unsure how to convert the data from excel to eviews. I have provided a sample of the data (for one of my time period and those with +1 dummy variable) as an example of how my work is setup. Please can someone advise me on how to proceed?

Many thanks, Dan
Attachments
EViewsReturnsSMALL.xlsx
(538.22 KiB) Downloaded 245 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: converting data from excel to eviews

Postby startz » Thu Sep 04, 2014 7:08 am

Drag-and-drop your Excel file onto EViews?

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

Re: converting data from excel to eviews

Postby dissertationdan » Thu Sep 04, 2014 7:33 am

Yes I have tried doing it like this but I am getting a collinearity problem when I run the regression. I think there is a problem with the way I am importing it. I have tried importing the whole sample as panel data but it didn't seem correct. Now I am splitting the whole sample into smaller samples with the same date, so it is more like a cross-section.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: converting data from excel to eviews

Postby startz » Thu Sep 04, 2014 7:36 am

You might want to post your EViews workfile, including the equation that is giving you a problem.

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

Re: converting data from excel to eviews

Postby dissertationdan » Thu Sep 04, 2014 8:09 am

Good idea. Here it is. The equation I used was excess_return_fc c mkt_rf_fc smb_fc hml_fc mom_fc
Attachments
eviewsreturnsnewfc.wf1
(152.21 KiB) Downloaded 227 times

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

Re: converting data from excel to eviews

Postby EViews Gareth » Thu Sep 04, 2014 8:13 am

Have you looked at the data in EViews and seen whether it matches the data in Excel? If it matches, the way you imported the data was not wrong :D

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: converting data from excel to eviews

Postby startz » Thu Sep 04, 2014 8:42 am

Have you looked at your data in EViews?

All your right hand side variables are constants.

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

Re: converting data from excel to eviews

Postby dissertationdan » Thu Sep 04, 2014 8:47 am

They are constant because they are the same variable for each observation. They should only vary over time, but I have taken a cross-section here so the time is not changing. Would you recommend using a different method?

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: converting data from excel to eviews

Postby startz » Thu Sep 04, 2014 8:49 am

Yes, use a time series or panel. The cross-section regression is impossible to estimate. This has nothing to do with EViews.

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

Re: converting data from excel to eviews

Postby dissertationdan » Thu Sep 04, 2014 9:02 am

Okay, you're right actually I think it works fine in the panel data setup. I now have the risk adjusted returns. Would you be able to advise me on how to regress these on a dummy variable. Do I need to create a eviews file like the 'dv' one I have here where it looks like 1,0,0,1,0,1 sort of format?

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: converting data from excel to eviews

Postby startz » Thu Sep 04, 2014 9:20 am

Load your data into EViews and then create a dummy variable inside the EViews workfile. Then use that dummy in the regression as you would any other variable.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest