Skip to content
Prev 170632 / 398506 Next

Comparison of age categories using contrasts

Mark Difford wrote:
My preference is to not reformulate the model to get desired contrasts 
but to think of the model as something that uses a convenient coding, 
then do after-fitting contrasts.  In the Design package you can fit a 
model (say, using glmD) then use contrast(fit, list(predictor settings 
1), list(predictor settings 2)) to get what you want.  ?contrast.Design 
provides the details.  I'll bet that one of John Fox's packages also 
provides a good way to do this.

Frank