search for: contrastmat

Displaying 1 result from an estimated 1 matches for "contrastmat".

Did you mean: contrastar
2012 Jul 09
1
Type II ANOVA for user-defined contrasts with covariates
...trying to use a type II ANOVA for a model with user-specified contrasts and covariates. I have two treatment groups and a control group. I'm comparing average treatment to controls and also between the two treatment groups, but I'm also looking to adjust for age and gender as covariates: contrastMat=cbind(c(-1,-1,2),c(1,-1,0)) contrasts(groups)=contrastMat Model=lm(Response~Age+Gender+Age:Gender+groups) since I'm interested in SS(R | A,G,AG) I was hoping then to use the Anova() function in the car() package to find the type II ANOVA for my specified contrasts, but when I do so it only l...