Skip to content

Commit 4d3d5ba

Browse files
authored
Merge pull request #67 from pymc-labs/doc-improvements
Doc improvements
2 parents ba759a9 + afd400e commit 4d3d5ba

File tree

4 files changed

+50
-4
lines changed

4 files changed

+50
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ _build
77
build/
88
dist/
99
docs/_build/
10+
*.vscode

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CausalPy
22

33
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
4+
[![PyPI version](https://badge.fury.io/py/CausalPy.svg)](https://badge.fury.io/py/CausalPy)
45

56
A Python package focussing on causal inference in quasi-experimental settings. The package allows for sophisticated Bayesian model fitting methods to be used in addition to traditional OLS.
67

docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ Regression Discontinuity
3535
:titlesonly:
3636

3737
notebooks/rd_pymc.ipynb
38-
notebooks/rd_pymc_drinking.ipynb
3938
notebooks/rd_skl.ipynb
39+
notebooks/rd_pymc_drinking.ipynb
4040
notebooks/rd_skl_drinking.ipynb

docs/index.rst

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,54 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
CausalPy - Causal inference in quasi-experimental settings
7-
==========================================================
6+
CausalPy - causal inference for quasi-experiments
7+
=================================================
88

9-
A Python package focussing on causal inference in quasi-experimental settings. The package allows for sophisticated Bayesian model fitting methods to be used in addition to traditional OLS.
9+
A Python package focussing on causal inference for quasi-experimentas. The package allows users to use different model types. Sophisticated Bayesian methods can be used, harnessing the power of `PyMC <https://www.pymc.io/>`_ and `ArviZ <https://python.arviz.org>`_. But users can also use more traditional `Ordinary Least Squares <https://en.wikipedia.org/wiki/Ordinary_least_squares>`_ estimation methods via `scikit-learn <https://scikit-learn.org/>`_ models.
10+
11+
Installation
12+
------------
13+
14+
To get the latest release:
15+
16+
.. code-block:: sh
17+
18+
pip install CausalPy
19+
20+
Alternatively, if you want the very latest version of the package you can install from GitHub:
21+
22+
.. code-block:: sh
23+
24+
pip install git+https://github.com/pymc-labs/CausalPy.git
25+
26+
27+
Features
28+
--------
29+
30+
Different quasi-experimental methods
31+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32+
33+
Rather than focussing on one particular quasi-experimental setting, this package aims to have broad applicability. We can analyse data from the following quasi-experimental methods:
34+
35+
Synthetic control
36+
"""""""""""""""""
37+
38+
.. image:: ../img/synthetic_control_pymc.svg
39+
40+
Interrupted time series
41+
"""""""""""""""""""""""
42+
43+
.. image:: ../img/interrupted_time_series_pymc.svg
44+
45+
Difference in differences
46+
"""""""""""""""""""""""""
47+
48+
.. image:: ../img/difference_in_differences_pymc.svg
49+
50+
Regression discontinuity
51+
""""""""""""""""""""""""
52+
53+
.. image:: ../img/regression_discontinuity_pymc.svg
1054

1155
Support
1256
-------

0 commit comments

Comments
 (0)