akelleh / causality

Tools for causal analysis
MIT License
1.06k stars 128 forks source link

CAUS-6: added comments, minor revisions, and a small bugfix #28

Closed akelleh closed 7 years ago

akelleh commented 7 years ago

Description

Propensity score matching needs comments! I'm adding those and some minor cleanup.

akelleh commented 7 years ago

fixing one more bug -- the att and atc are reversed!

akelleh commented 7 years ago

Fixed! They weren't actually reversed -- it was P(D=1) being calculated incorrectly, since X was modified in the ATC calculation.