LABELS and Labels

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
svannorden
Posts: 16
Joined: Thu Aug 08, 2013 12:23 pm

LABELS and Labels

Unread post by svannorden »

I'm writing code for repetative analysis (across 50 forecast horizons and many variables) by creating vectors of series and then labeling them.
For example

Code: Select all

DECLARE VECTOR[SERIES]  GBFRCST(50) 
LABELS GBFRCST
# 'GB_F_M12' 'GB_L_M12' 'GB_F_M11' 'GB_L_M11' 'GB_F_M10' 'GB_L_M10' $
  'GB_F_M09' 'GB_L_M09' 'GB_F_M08' 'GB_L_M08' 'GB_F_M07' 'GB_L_M07' $
  'GB_F_M06' 'GB_L_M06' 'GB_F_M05' 'GB_L_M05' 'GB_F_M04' 'GB_L_M04' $
  'GB_F_M03' 'GB_L_M03' 'GB_F_M02' 'GB_L_M02' 'GB_F_M01' 'GB_L_M01' $
  'GB_F__00' 'GB_L__00' 'GB_F__01' 'GB_L__01' 'GB_F__02' 'GB_L__02' $
  'GB_F__03' 'GB_L__03' 'GB_F__04' 'GB_L__04' 'GB_F__05' 'GB_L__05' $
  'GB_F__06' 'GB_L__06' 'GB_F__07' 'GB_L__07' 'GB_F__08' 'GB_L__08' $
  'GB_F__09' 'GB_L__09' 'GB_F__10' 'GB_L__10' 'GB_F__11' 'GB_L__11' $
  'GB_F__12' 'GB_L__12'
My problem is that the behavior of the new labels seem erratic.
  • if I open the Series Window, I can see my new series as soon as I DECLARE my vector.
  • However, their labels don't appear in the window until I read in some new data series.
  • Similarly, graphs of series I've created with DECLARE VECTOR[SERIES] label them with the name of the vector (e.g. GBFRCST(7)) rather than the label I've carefully assigned. (e.g.GB_F_M09)

    Any idea what I've overlooked? :oops:
svannorden
Posts: 16
Joined: Thu Aug 08, 2013 12:23 pm

Re: LABELS and Labels

Unread post by svannorden »

Oops! Never mind.....the problem was my code, not RATS. :oops: :oops:
Post Reply