Fix dummyEncoding to output only independent variables