Adding details to a series label

For questions regarding programming in the EViews programming language.

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

HollEviews
Posts: 15
Joined: Wed Mar 12, 2014 6:52 am

Adding details to a series label

Postby HollEviews » Tue Aug 05, 2014 3:46 am

Please can you tell me how to edit the label details of a series? For example, when I append a series label to a spool (spool.append ser01.label) I would like it to include the frequency and start and end dates. thank you!

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

Re: Adding details to a series label

Postby EViews Gareth » Tue Aug 05, 2014 6:17 am

All object attributes can be set with:

Code: Select all

objectname.setattr(attrname) attvalue
where objectname is the name of the object, attrname is the attribute you want to set, and attvalue is the value you want to set it to.

HollEviews
Posts: 15
Joined: Wed Mar 12, 2014 6:52 am

Re: Adding details to a series label

Postby HollEviews » Tue Aug 05, 2014 7:51 am

But the frequency, start and end dates of the series are not attributes that can be modified. Is there a way to add them to the series label?

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

Re: Adding details to a series label

Postby EViews Gareth » Tue Aug 05, 2014 7:56 am

Code: Select all

create m 1990 2000 series x=nrnd %freq = @pagefreq %start = x.@first %end = x.@last x.setattr(Frequency) {%freq} x.setattr(Start Date) {%start} x.setattr(End Date) {%end} show x.label

HollEviews
Posts: 15
Joined: Wed Mar 12, 2014 6:52 am

Re: Adding details to a series label

Postby HollEviews » Thu Sep 18, 2014 9:32 am

I have a follow-up question to working with labels. Is it possible to copy the 'history' from one series to another? I can't find a way to call the history attribute (@history doesn't seem to do the trick!) Is there a way to access the history from a series label and convert it to a string or something?
thank you!

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

Re: Adding details to a series label

Postby EViews Gareth » Thu Sep 18, 2014 10:32 am

Unfortunately not.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests