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 (October 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 17 Oct 2007 16:48:38 -0400
Reply-To:     "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:      Re: Use all numeric variables as predictors in proc reg

On Tue, 16 Oct 2007 20:44:45 -0000, Gina Nicolosi <ginanicolosi@HOTMAIL.COM> wrote:

>I am writing a program which randomly selects predictor variables to >be included in a regression. Since the predictors during any one >iteration can change, I can't write them out in the MODEL statement. >Therefore, I was wondering if there was any way to specify that all >numeric variables in the data set act as regressors? Kind of like >putting _ALL_ or _NUMERIC_ after the equals sign when running PROC REG >(but this approach doesn't work). Any guidance would be greatly >appreciated.

It would help to see the log messages or other evidence of "doesn't work", which is kind of vague by itself.

Don't you need to specify all numeric variables except for one, the one being predicted?

You probably want to build a list in a macro variable by running a query against DICTIONARY.COLUMNS.


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