Re: [R] how to test this

From: Simon Blomberg <blomsp_at_ozemail.com.au>
Date: Wed 03 Aug 2005 - 16:23:06 EST

This is two tests: Whether the slope != 1 and whether the intercept != 0.

To do this, include an offset in your model:

fit <- lm(y ~ x + offset(x), data=dat)

HTH, Simon.

At 03:44 PM 3/08/2005, Jin.Li@csiro.au wrote:
>Dear there,
>
>I am wondering how to test whether a simple linear regression model
>(e.g. y=1.05x) is significantly different from a 1 to 1 line (i.e. y=x).
>Thanks.
>
>Regards,
>
>Jin
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat. Centre for Resource and Environmental Studies The Australian National University
Canberra ACT 0200
Australia
T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au F: +61 2 6125 0757
CRICOS Provider # 00120C



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 03 16:31:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:39 EST