I am doing a logit model using statsmodels (sm.Logit) and one hot encoding. How do I enforce monotonicity for the one hot encoded variables?
this_model = sm.Logit(endog=self.endog,exog=sm.add_constant(self.exogs[candidatemodel]), missing = 'drop')
this_result = this_model.fit(disp=False)
Thanks!
Comments
Post a Comment