I think this should work:

lm(y ~ x - 1)

Ivar

On Mon, 05 Jan 2004 11:30:39 +0200, allan clark <[EMAIL PROTECTED]> wrote:

Hi all

this is a silly question since i should know the answer.

lm(y~x) perfroms linear regression with the intercept included.

How do i estimate the equation without the intercept?

cheers

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to