s-news
[Top] [All Lists]

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

To: s-news@wubios.wustl.edu
Subject: Summary Reponses: [S] using lm but don't want to have the intercept in the regression
From: Ben Chen <ben@guzman.com>
Date: Thu, 23 Sep 1999 13:02:51 -0400
Sender: owner-s-news@wubios.wustl.edu
 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

<Prev in Thread] Current Thread [Next in Thread>
  • Summary Reponses: [S] using lm but don't want to have the intercept in the regression, Ben Chen <=