I am trying to fit a Cox regression model to my time-to event data and have a categorical variable with 5 different levels. I leave one level out as the 'reference'. I also have 2 levels with small number of subjects, and I am getting a warning about these variables (levels) having low variance as follows:
ConvergenceWarning: Column(s) ['xxx'] have very low variance. This may harm convergence. 1) Are you using formula's? Did you mean to add '-1' to the end. 2) Try dropping this redundant column before fitting if convergence fails.
And my model does not converge. How should I handle this case?
I am using CoxTimeVaryingFitter from lifelines library in Python.