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
|