I am trying to run the logit regresison using sm.Logit(), but keep getting the error:
exog = ['constant','cylinders','displacement','horsepower','weight','year', 'origin']
logit = sm.Logit(endog = df_quant2['mpg_high'], exog = df_quant2[['constant','cylinders','displacement','horsepower','weight','year', 'origin']])
I am trying to run the logit regresison using sm.Logit(), but keep getting the error:
LinAlgError: Singular matrixwhen I try to use the .fit() method on the model:any suggestions?