[R] Multiple comparison test split plot analysis in R

2009-10-26 Thread Jo Stringer
Hi all! I have a split plot analysis in which the model parameters are: Efficacy = y Rep = block Product and rateind = main plot Variety = subplot I can do the split plot analysis with: summary(model1<-aov(efficacy~rep+product*rateind*variety+Error(rep:product:rate), data=ht28)) How do

[R] Plotting two regression lines on one graph

2009-06-07 Thread Jo Stringer
Hi! I have fitted two glms assuming a poisson distribution which are: fit1 <- glm(Aids ~ Year, data=aids, family=poisson()) fit2 <- glm(Aids ~ Year+I(Year^2), data=aids, family=poisson()) I am trying to work out how to represent the fitted regression curves of fit1 and fit2 on the one graph.