[R] coding for categorical variables with unequal observations

Tanya Yatsunenko yata25 at gmail.com
Thu Apr 3 22:54:37 CEST 2008


Hi,
I am doing multiple regression, and have several X variables that are 
categorical.
I read that I can use dummy or contrast codes for that, but are there 
any special rules when there're unequal #observations in each groups (4 
females vs 7 males in a "gender" variable)?
Also, can R generate these codes for me?
THanks.



More information about the R-help mailing list