Skip to content

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

@TomPCurran

Description

@TomPCurran

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions