importing stock and country time series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

bgbg
Posts: 4
Joined: Fri Mar 26, 2010 12:41 pm

importing stock and country time series

Postby bgbg » Fri Mar 26, 2010 1:01 pm

Hi
Sorry, could not figure this out from the panel info in the manual (EViews 7). How do I import the attached data from Excel?
It contains time series for each slot/company, but I also want to get the sector and country for each stock.
Thank you
ttt.doc
(30 KiB) Downloaded 480 times

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

Re: importing stock and country time series

Postby EViews Gareth » Fri Mar 26, 2010 1:09 pm

It really isn't clear what you're asking here. What are the cross-section identifiers you want to use?

Attaching a word document containing a screenshot of the Excel data isn't particularly helpful either. You might want to consider attaching the Excel file.

bgbg
Posts: 4
Joined: Fri Mar 26, 2010 12:41 pm

Re: importing stock and country time series

Postby bgbg » Fri Mar 26, 2010 1:22 pm

Thank you for the quick reply. I attached the word file accidentally - here's the excerpt in Excel.
I want to do time series analysis of pe not just across companies, but also by sector and by country.
Thanks
Attachments
test.xls
(13.5 KiB) Downloaded 462 times

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

Re: importing stock and country time series

Postby EViews Gareth » Fri Mar 26, 2010 2:05 pm

Could you define what your cross-section identifiers (and if you really want to do time-series analysis, your time identifier) are?

bgbg
Posts: 4
Joined: Fri Mar 26, 2010 12:41 pm

Re: importing stock and country time series

Postby bgbg » Fri Mar 26, 2010 2:23 pm

The cross section identifiers are company, slot, country, and sector and the time identifier is month - thanks.

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

Re: importing stock and country time series

Postby EViews Gareth » Fri Mar 26, 2010 2:42 pm

Your Excel file doesn't include a "month" column, hence the confusion.

Assuming your full file is properly filled out, you should just be able to open it in EViews, then click on Proc->Structure/Resize current page, then select Dated Panel as the structure type, enter "month" as the date ID, and "company slot country sector" as your cross-IDs

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Re: importing stock and country time series

Postby tchaithonov » Fri Mar 26, 2010 2:46 pm

I think you have to change your date to date format (2009M6 instead of 62009) pivot your data so that the variable name becomes PE (PE Ratio, I suppose?) and either use your slot number as cross-sectional id or concatenate the company, country and sector to create an alpha id. It should be something like this:

ID Month PE
1664 2009M6 12.1
1664 2009M7 11.9
1664 2009M8 14.3
1664 2009M9 15.0
1704 2009M6 9.2
1704 2009M7 12.2
1704 2009M8 23.3
1704 2009M9 20.8

bgbg
Posts: 4
Joined: Fri Mar 26, 2010 12:41 pm

Re: importing stock and country time series

Postby bgbg » Fri Mar 26, 2010 4:44 pm

many thanks to both of you. have a great weekend.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest