Cross-section identifiers in panel data (Programming)

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

Jamels
Posts: 3
Joined: Fri Sep 26, 2014 5:51 am
Contact:

Cross-section identifiers in panel data (Programming)

Postby Jamels » Thu Feb 26, 2015 4:52 am

Dear Sir,

I am trying to import cross-section identifiers in panel.

I use the following code :

'********************
'Import Panel Data
'********************
wfcreate(wf=eco_mod, page=annual) a 1982 2010 26
read(t=xls,a2,s=data_fin) C:\Users\Jamel\Latex\imbalances_and_feers_th\NEW_VERSION_0813\EXCEL_0215.xls country period mis reer feer reer_cs feer_cs
'*************************
genr logreer=log(reer)
genr logfeer=log(feer)
'*************************
equation level_reer_feer.ls logreer c logfeer
freeze(table_level_reer_feer) level_reer_feer
show level_reer_feer
'*************************************************
equation level_feer_reer.ls logfeer c logreer
freeze(table_level_feer_reer) level_feer_reer
show level_feer_reer
'************************************************************
equation difference_reer_feer.ls d(logreer) c d(logfeer)
freeze(table_diff_reer_feer) difference_reer_feer
show difference_reer_feer
'*************************************************************
equation difference_feer_reer.ls d(logfeer) c d(logreer)
freeze(table_diff_feer_reer) difference_feer_reer
show difference_feer_reer
'*************************************************************
group reer_feer logreer logfeer
freeze(mygra) reer_feer.scat(panel=combined) linefit
show mygra
'*************************************************************

The program works well but the country series which should be the series of cross-section identifiers display "NA" in every cells. I join the data to the message.

I think the problem comes from the fact the series of cross-section identifiers is not in a "number" format.

I didn't manage to solve this programming problem in a simple way.

Your help would be very useful.

Yours faithfully,

Jamel Saadaoui
University of Strasbourg
Attachments
eco_mod.wf1
(121.88 KiB) Downloaded 193 times

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

Re: Cross-section identifiers in panel data (Programming)

Postby EViews Gareth » Thu Feb 26, 2015 12:04 pm

Hard to say without seeing the original source file, but you should almost certainly just be using a wfopen rather than a wfcreate followed by a read.

Jamels
Posts: 3
Joined: Fri Sep 26, 2014 5:51 am
Contact:

Re: Cross-section identifiers in panel data (Programming)

Postby Jamels » Thu Feb 26, 2015 3:39 pm

Thank you for your fast reply, I will try with wfcreate. I attach the original source file.
Attachments
eviews_codes_0215.prg
(1.25 KiB) Downloaded 263 times

Jamels
Posts: 3
Joined: Fri Sep 26, 2014 5:51 am
Contact:

Re: Cross-section identifiers in panel data (Programming)

Postby Jamels » Thu Feb 26, 2015 4:30 pm

Problem solved. Thank you for your help.

Jamel Saadaoui
University of Strasbourg
Attachments
eviews_codes_0215.prg
(1.35 KiB) Downloaded 252 times


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests