Skip to content
Prev 74903 / 398502 Next

how to test this

Thank you all for the reply.
Regards,
Jin

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: Wednesday, 3 August 2005 5:20 P
To: Simon Blomberg
Cc: Li, Jin (CSE, Atherton); r-help at stat.math.ethz.ch
Subject: Re: [R] how to test this
On Wed, 3 Aug 2005, Simon Blomberg wrote:

            
0.

Neither model given has an intercept ....
but no intercept, so use

summary(lm(y ~ 0 + x + offset(1.05*x), data=dat))

and look if the coefficient of x is significantly different from zero.

E.g.

x <- 1:10
set.seed(1)
y <- 1.05*x + rnorm(10)
summary(lm(y ~ 0 + x + offset(1.05*x)))

Coefficients:
   Estimate Std. Error t value Pr(>|t|)
x  0.03061    0.03910   0.783    0.454

is not.
y=x).