Martin Biuw wrote:
Hi,
Sorry if this is an obvious one, but is there a simple way to modify the lm
function to test whether a slope coefficient is significantly different
from 1 instead of different from 0?
Thanks,
There might be an easier way, but the brute force method would be:
R> set.see
No modification needed. Fit either of
lm(y-x ~ x + z)
lm(y ~ x + z + offset(x))
and the t-test in the summary will be a test of the coefficient of x being
one.
You can also use such models to do an anova against a modle with unit
coefficient.
On Thu, 5 Jun 2003, Martin Biuw wrote:
> Sorry i
Hi,
Sorry if this is an obvious one, but is there a simple way to modify the lm
function to test whether a slope coefficient is significantly different
from 1 instead of different from 0?
Thanks,
Martin
Martin Biuw
SEA MAMMAL RESEARCH UNIT
Gatty Marine Laboratory
School of Environmental and E