matheusfacure / python-causality-handbook

Causal Inference for the Brave and True. A light-hearted yet rigorous approach to learning about impact estimation and causality.
https://matheusfacure.github.io/python-causality-handbook/landing-page.html
MIT License
2.65k stars 463 forks source link

Ch25 - "sc" not defined #282

Closed rod53 closed 1 year ago

rod53 commented 1 year ago

I believe that there is an issue on chapter 25, in the following paragraph: from sc import SyntheticControl (...)

I believe that "sc" was not defined. Is that a real issue or am I mireading something?

matheusfacure commented 1 year ago

You need to clone the repo to run the code. sc.py is a file in the repo. Alternatively, just download the file to wherever you are running the notebook. https://github.com/matheusfacure/python-causality-handbook/blob/master/causal-inference-for-the-brave-and-true/sc.py