Date: Tue, 15 Oct 2002 23:36:09 GMT
Reply-To: Arthur Tabachneck <atabachneck@ROGERS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <atabachneck@ROGERS.COM>
Subject: Re: Least Squares Linear Regression
Oops (still, while late in the day, noticed by David),
My sample program's input statement should have read:
input y,x;
I really do have to learn not to try giving advice when tired :)
Art
---------
"Arthur Tabachneck" <atabachneck@rogers.com> wrote in message
news:ia1r9.6$%h2.4@news02.bloor.is.net.cable.rogers.com...
> Joseph,
>
> It's late in the day, thus I probably have misinterpreted your request.
Are
> you only looking for the following:
>
> Art
> -------
> data one;
> infile cards delimiter=' ' missover;
> input x y;
> cards;
> 1 3
> 1 3
> 2 4
> 2 4
> 3 1
> 2 2
> run;
> proc reg data=one;
> model y=x;
> run;
>
> ----------
> "Joseph Wu" <wuf@uci.edu> wrote in message
> news:aoi1ol$os2$1@news.service.uci.edu...
> > Hi: I need the programming Code to generat the Multiple R under
> Regression:
> > Here are my test data.. If you know the algorithm, please e-mail me..
> >
> > PS: The regression result is generated under EXCEL.. (Least Squares
Linear
> > Regression)
> >
> > thank you!!!
> > Y X
> > ===================================
> > 1 3
> > 1 3
> > 2 4
> > 2 4
> > 3 1
> > 2 2
> >
> > Regression Statistics
> > Multiple R 0.492410112
> >
> >
>
>
|