Skip to content
Prev 332782 / 398506 Next

Treatment effects on measurements through time: how to tell when (in time) treatment has a significant effect?

On 11/07/2013 07:46 AM, c_e_cressler wrote:
Hi Clay,
If you calculate the mean growth rates:

inf_mean<-apply(as.matrix(inf.grates),1,
  mean,na.rm=TRUE)
cntl_mean<-apply(as.matrix(cntl.grates),1,
  mean,na.rm=TRUE)

and plot them:

plot(cntl_mean,col=3)
points(inf_mean,col=2)

It looks like the growth rate in the infected group is consistently 
greater. Testing the linear models:

summary(lm(cntl_mean~I(1:length(cnf_mean))))
summary(lm(inf_mean~I(1:length(inf_mean))))

looks like there is a significant effect. The proper comparison would be 
a mixed model with the individual scores, I think.

Jim