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 (June 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 25 Jun 2005 15:55:36 -0700
Reply-To:   shiling99@YAHOO.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   shiling99@YAHOO.COM
Organization:   http://groups.google.com
Subject:   Re: On Proc SurveyReg
Comments:   To: sas-l@uga.edu
In-Reply-To:   <1119730484.345377.38530@g14g2000cwa.googlegroups.com>
Content-Type:   text/plain; charset="iso-8859-1"

Suppose that you have a regression model,

y=x*beta+error;

then beta=(x'x)**(-1)*(x'y); (*) under regression model assumptions which you can find in any regression textbook.

The beta calculation depends on the invertible moment matrix (x'x). If x'x is singular, then x'x can not be inverted.

When x'x is singular, it usually means that there is a linear combination among the coefs. you may over parametrize the model.

Your model may involve weighted regression so that moment matrix is in the form of x'wx

Here is an example. HTH.

data t1; do i = 1 to 30; x1=rannor(123); x2=x1; y=3+3*x1+3*x2+rannor(123); output; end; run;

proc reg data=t1; model y=x1 x2; run; quit;


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