[19302] in s-news-athena

home help back first fref pref prev next nref lref last post

Summary Reponses: [S] using lm but don't want to have the intercept in

daemon@ATHENA.MIT.EDU (Ben Chen)
Thu Sep 23 13:09:27 1999

Message-Id: <37EA5D3B.64FC2E71@guzman.com>
Date: Thu, 23 Sep 1999 13:02:51 -0400
From: Ben Chen <ben@guzman.com>
Mime-Version: 1.0
To: s-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


 Thank you for all the responses. 
 The answer is quite simple: add -1 at the right hand side
	lm (y~dummy1+dummy2+dummy3-1+x1+x2+...+xn).


--------------------------------------------------------------------
  This may be a simple question for you.

I need to run a linear regression using lm, but I don't want to have the
intercept 
in the regression. Instead, I like to use dummy variables. when I had
both the dummy
variables and the intercept in my regression, I got singularity error.


Ben Chen
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post