Adding details to a series label
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
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: 13585
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Adding details to a series label
All object attributes can be set with:
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.
Code: Select all
objectname.setattr(attrname) attvalue
-
HollEviews
- Posts: 15
- Joined: Wed Mar 12, 2014 6:52 am
Re: Adding details to a series label
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: 13585
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Adding details to a series label
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
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!
thank you!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13585
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Adding details to a series label
Unfortunately not.
Who is online
Users browsing this forum: No registered users and 2 guests
