Ungrouping Group Series data after conversion to log diff

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Ungrouping Group Series data after conversion to log diff

Postby naz_08 » Tue Dec 04, 2012 2:01 am

Hi,

I am a new user of Eviews. I grouped several spreadsheets (raw data) on eviews, and took the log difference. Now I want to display and save the individual log difference series in the group onto my workfile as individual returns data, as separate files. Please advise how I can accomplish this.

Attached pic shows the working file for hong kong sectoral indices in a group file named hk_ret which is the log difference of raw data. I need help to create individual files for every column in the group file which I changed from raw data to log diff. Please help as I dont want to do it manually every time. I am analyzing 10 countries with multiple sectoral indices so it will be very time-consuming.

I am using EViews 5
Thanks in advance!

-Naz
Attachments
hk.PNG
Hongkong group file of sectoral indices needed to be separated to individual columns in working file.
hk.PNG (48.3 KiB) Viewed 5803 times

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

Re: Ungrouping Group Series data after conversion to log dif

Postby EViews Gareth » Tue Dec 04, 2012 8:35 am

Code: Select all

for !i=1 to HK_RET.@count %sername = hk_reg.@seriesname(!i) %newname = "ld_" + %sername series {%newname} = @dlog({%sername}) next

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Re: Ungrouping Group Series data after conversion to log dif

Postby naz_08 » Tue Dec 04, 2012 1:47 pm

Code: Select all

for !i=1 to HK_RET.@count %sername = hk_reg.@seriesname(!i) %newname = "ld_" + %sername series {%newname} = @dlog({%sername}) next

Hi Gareth,

Thanks for your reply. I am still having trouble incorporating it into eviews. Please view the screen shot and advise. Thank you so much.
Attachments
cap008.PNG
cap008.PNG (23.07 KiB) Viewed 5791 times

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

Re: Ungrouping Group Series data after conversion to log dif

Postby EViews Gareth » Tue Dec 04, 2012 6:59 pm

You need to write an EViews program (File->New Program).

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Re: Ungrouping Group Series data after conversion to log dif

Postby naz_08 » Wed Dec 05, 2012 1:45 am

You need to write an EViews program (File->New Program).

Hi Gareth,

Sorry I am very slow in this.
I opened new program as you mentioned, then saved it , and then run it but I still get a error message as indicated by photo. Kindly
provide me with a solution and possible step by step action I can do. Thanks so much, you are a great help. Have a great day.
Attachments
cap009.PNG
cap009.PNG (28.31 KiB) Viewed 5780 times

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

Re: Ungrouping Group Series data after conversion to log dif

Postby EViews Gareth » Wed Dec 05, 2012 8:22 am

You need to have your workfile open.

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Re: Ungrouping Group Series data after conversion to log dif

Postby naz_08 » Wed Dec 05, 2012 11:03 am

You need to have your workfile open.
Hi,

I have tried that but it doesnt work. I closed the group (hk wf) and its still the same error message?
Attachments
cap0010.PNG
cap0010.PNG (78.51 KiB) Viewed 5761 times

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Re: Ungrouping Group Series data after conversion to log dif

Postby naz_08 » Wed Dec 05, 2012 11:05 am

You need to have your workfile open.
Hi Gareth,

Ok i figured it out. It should be written HK_RET....

thanks a lot :) have a good one.

naz_08
Posts: 7
Joined: Tue Dec 04, 2012 1:56 am

Re: Ungrouping Group Series data after conversion to log dif

Postby naz_08 » Thu Dec 06, 2012 11:25 am

You need to have your workfile open.
Hi,

I have tried that but it doesnt work. I closed the group (hk wf) and its still the same error message?


Hi Gareth,

Is there any program I could take the group file and find the individual c-garch for each series automatically? Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests