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 (January 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Jan 2002 08:45:27 -0600
Reply-To:     aldi@wubios.wustl.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Aldi Kraja <aldi@WUBIOS.WUSTL.EDU>
Organization: Washington University
Subject:      Re: save residual from proc reg
Content-Type: text/plain; charset=us-ascii

Hi,

You have to read statistical books that work with SAS, or refer to the manual SAS/STAT User's Guide. Here is the solution: Assume you have a dataset named a1. There are two variables one: d1 the dependent var. and the other d2 the independent var. You wanted to save the residuals in another data set from the regression: Here is the output from some nonsense data: Obs d1 d2 rd1

1 12 13 1.52985 2 15 16 0.47761 3 10 14 -1.82090 4 9 12 -0.11940 5 5 9 -0.06716

proc reg data=a1; model d1 = d2; output out=a2 r=rd1; run;

HTH, Aldi

xhu wrote:

> does anyone know how to save the residual from a regression to a dataset, > i checked online doc, it only say with option p at model statement, i can > report the residual, since i will use residual later, how to save this > values into another dataset?

--


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