Skip to content

Instantly share code, notes, and snippets.

@justmarkham
Created April 7, 2016 16:32
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save justmarkham/6d5c061ca5aee67c4316471f8c2ae976 to your computer and use it in GitHub Desktop.
Save justmarkham/6d5c061ca5aee67c4316471f8c2ae976 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiangyiwen22
Copy link

y, X = dmatrices('affair ~ rate_marriage + age + yrs_married + children +
religious + educ + C(occupation) + C(occupation_husb)',
dta, return_type="data frame")

I got the error from the above line:

TypeError: 'QuadContourSet' object is not callable.

Which step goes wrong? I copy and paste every step from this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment