Page 1 of 1
Adding details to a series label
Posted: Tue Aug 05, 2014 3:46 am
by HollEviews
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!
Re: Adding details to a series label
Posted: Tue Aug 05, 2014 6:17 am
by EViews Gareth
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.
Re: Adding details to a series label
Posted: Tue Aug 05, 2014 7:51 am
by HollEviews
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?
Re: Adding details to a series label
Posted: Tue Aug 05, 2014 7:56 am
by EViews Gareth
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
Re: Adding details to a series label
Posted: Thu Sep 18, 2014 9:32 am
by HollEviews
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!
Re: Adding details to a series label
Posted: Thu Sep 18, 2014 10:32 am
by EViews Gareth
Unfortunately not.