{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# DoWhy example on the Lalonde dataset\n", "\n", "Thanks to [@mizuy](https://github.com/mizuy) for providing this example. Here we use the Lalonde dataset and apply IPW estimator to it. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "R[write to console]: Loading required package: MASS\n", "\n", "R[write to console]: ## \n", "## Matching (Version 4.9-5, Build Date: 2019-03-05)\n", "## See http://sekhon.berkeley.edu/matching for additional documentation.\n", "## Please cite software as:\n", "## Jasjeet S. Sekhon. 2011. ``Multivariate and Propensity Score Matching\n", "## Software with Automated Balance Optimization: The Matching package for R.''\n", "## Journal of Statistical Software, 42(7): 1-52. \n", "##\n", "\n", "\n" ] }, { "data": { "text/plain": [ "array(['Matching', 'MASS', 'tools', 'stats', 'graphics', 'grDevices',\n", " 'utils', 'datasets', 'methods', 'base'],\n", " dtype=' Causal Estimate is 1634.9868359746906" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.2" } }, "nbformat": 4, "nbformat_minor": 2 }