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.
|