Moved the code to remove IntCat==9 earlier so that factor levels with no events will be removed. This will help with modeling (especially when model.matrix is used)