Date: Thu, 25 Dec 2008 10:32:54 -0500
Reply-To: Bill West <wm_a_west@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bill West <wm_a_west@YAHOO.COM>
Subject: Re: How to save the slope of a regression model to a dataset?
Content-Type: text/plain; charset=ISO-8859-1
I see you've received several suggested methods and I may be showing my
ignorance but I'm not sure what you mean by “ save the estimated slope as
a new variable.
if you mean a predicted value
I believe the regout dataset below will include a predicted value for
each obs. Is that what you want?
if 1< =_N_ <=20 then span=1;
if 21< =_N_ <=30 then span=2;
if 31< =_N_ <=40 then span=3;
etc up to 500;
proc reg data=expanded noprint outest=regout ;
model x =y;