Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #3a Issue - LinAlgError: Singular Matrix #147

Open
TomPCurran opened this issue Feb 3, 2018 · 0 comments
Open

Question #3a Issue - LinAlgError: Singular Matrix #147

TomPCurran opened this issue Feb 3, 2018 · 0 comments

Comments

@TomPCurran
Copy link

TomPCurran commented Feb 3, 2018

I am trying to run the logit regresison using sm.Logit(), but keep getting the error:

LinAlgError: Singular matrix when I try to use the .fit() method on the model:

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']])

any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant