[WinBUGS] Categorical variable

#1
Hi,

I'm wanting to run a simple regression of Y on X, where X is a categorical variable with K categories. I know one approach is to make K-1 dummy variables manually. Is there another paramaterization I can specify in WinBUGS to do this automatically? I've tried googling it, but I haven't turned up anything.

Thanks!