When I have a binary outcome variable and a binary predictor, I am able to calculate the sample size needed using either G*Power (under z tests -- logistic regression) or R (wp.logistic). However, I do not know how to tackle this when the predictor variable has three groups/categories. Does anyone know how to go about these calculations, and using what software? Thanks in advance.