LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 20 Mar 2002 08:56:18 -0500
Reply-To:   Ben Ridenhour <bridenho@INDIANA.EDU.--->
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ben Ridenhour <bridenho@INDIANA.EDU.--->
Organization:   Indiana University, Bloomington
Subject:   SAS regression labelling

I've been having a problem with a macro that I have programmed. The macro is designed to perform 1000 regressions using a DO loop. From each regression, the data I need is provided by the options COVOUT and OUTEST = dataset. The data is then appended into a larger data set. The problem is that I need to identify each regression with a unique identifier. I am attempting to do this with the label portion of the model statement for proc reg (e.g label: MODEL y = x;), because the label shows up as the variable _MODEL_ in OUTEST. Because the DO loop has the variable "i" that steps from 1-1000, I thought I would try putting that as the label. I have tried doing " &i : MODEL y =x; " and " ('Regress' || &i) : MODEL y=x;). I have also tried defining a variable earlier in the loop and then using that variable as the label (e.g. ... modellabel = ('Regress' || &i);...... modellabel : MODEL y=x; ....). Can anyone give me some advice as how to make this work?

Thanks


Back to: Top of message | Previous page | Main SAS-L page