comparing slopes for significant difference
From: Ben (benjamin.kenward_at_zoology.ox.ac.uk)
Date: 03/11/05
- Next message: Wolf Kirchmeir: "Re: about modeling human decisions?"
- Previous message: Glen M. Sizemore: "Re: about modeling human decisions?"
- Next in thread: Bruce Weaver: "Re: comparing slopes for significant difference"
- Reply: Bruce Weaver: "Re: comparing slopes for significant difference"
- Reply: Scott Seidman: "Re: comparing slopes for significant difference"
- Reply: Ray Koopman: "Re: comparing slopes for significant difference"
- Reply: dave_at_autobox.com: "Re: comparing slopes for significant difference"
- Reply: Richard Ulrich: "Re: comparing slopes for significant difference"
- Reply: Ben: "Re: comparing slopes for significant difference"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Mar 2005 14:20:25 +0000 (UTC)
Hi there,
I have data for four individuals. This consists of measurements of a
certain parameter over time, and the parameter tends to increase. I want
to work out if the rate of increase is significantly different in
different individuals. So the easy way to do it would be a GLM with time
as a covariate and individual as a factor. Unfortunately there is a
complication. One of the individuals is missing a lot of data at the
start of the period, which causes its regression line not to pass
through the origin (and therefore creates an artifactual significant
difference). For this particular parameter, it should by nature have
value 0 at time 0 (and the intercepts of the regression for the other
individuals do go pretty much right through 0). I would like therefore
like to constrain the regression to pass through the origin. This is
easy to do in genstat or minitab when calculating a regression for one
individual, but there is no option to do this with a GLM with factors. I
don't know if this is just because the option is missing or because
there is a fundamental way why a GLM like this would not be valid.
By the way, I realise that the fact that missing data causes a change in
the slope implies that the rate of change is not constant, so in theory
I should fit a squared term for time. But I think this adds extra
complication which I could do without, as the data doesn't seem to be
very different from linear.
So one way I thought of to do it is to work out the regression
coefficients for each individual separately, and you can then calculate
the t statistic to see if the slope from one individual differs
significantly from another slope like this:
t = ( Estimate of slope - comparison slope ) / s.e. estimated slope
and using the error d.f. as the d.f. for looking up the P value.
The problem with this way is that I get different P values depending
which way round I compare two slopes (because they have different s.e.
and d.f.). This makes me think this method is a little dodgy, and I
wonder if anyone can suggest an improvement?
Alternatively can anyone suggest any other way of approaching this?
Thanks a lot,
Ben
Ben Kenward
Department of Zoology, Oxford University
http://users.ox.ac.uk/~kgroup/ben.html
- Next message: Wolf Kirchmeir: "Re: about modeling human decisions?"
- Previous message: Glen M. Sizemore: "Re: about modeling human decisions?"
- Next in thread: Bruce Weaver: "Re: comparing slopes for significant difference"
- Reply: Bruce Weaver: "Re: comparing slopes for significant difference"
- Reply: Scott Seidman: "Re: comparing slopes for significant difference"
- Reply: Ray Koopman: "Re: comparing slopes for significant difference"
- Reply: dave_at_autobox.com: "Re: comparing slopes for significant difference"
- Reply: Richard Ulrich: "Re: comparing slopes for significant difference"
- Reply: Ben: "Re: comparing slopes for significant difference"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|