Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Enforce monotonicity in Python Statsmodels

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