[R] Coding for contrasts in unbalanced designs

From: Guillaume Brutel <guillaume.brutel_at_yahoo.fr>
Date: Tue 03 Apr 2007 - 10:08:03 GMT


Dear list members,

I want to use a GLM with an unbalanced factor and continuous variables. My factor F has 12 unbalanced levels:
F=as.factor(c('A','B','C','C','C','C','D','D','D','D','D','D','E','E','E','E','E','E','F','G','G','H','I','I','J','J','J','K','L','L','L'))
> summary(F)

A B C D E F G H I J K L
1 1 4 6 6 1 2 1 2 3 1 3

I thus want to code contrasts appropriatly. I have looked in R documentations and R-help archives without finding the information for unbalanced designs. Any help will be very useful.
Thanks you very much.
Guillaume Brutel.                  


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Apr 03 20:30:04 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 03 Apr 2007 - 11:31:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.