Input categorical variables

I gave an example in this post here on how to transform dummy matrices