Skip to content

Commit

Permalink
update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
sprivite committed Jul 2, 2024
1 parent aac9efe commit b9c6f03
Show file tree
Hide file tree
Showing 3 changed files with 701 additions and 409 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@ must be adjusted for as part of any causal inference analysis. That is where

`pybalance` is a suite of tools in python for performing confounding adjustment
in non-randomized populations. In `pybalance`, we start with measures of "balance"
(how similar two populations are) and directly optimize this metric.
This approach is different, and we think almost always better, from the well-known
propensity score approach, in which the probability of treatment assignment
is modelled.
(how similar two populations are) and directly optimize this metric. This approach is
different, and we think almost always better, from the well-known propensity score
approach (see our [demo](https://bayer-group.github.io/pybalance/demos/ps_matcher.html)),
in which the probability of treatment assignment is modelled, but balance metrics are
almost always anyway implicitly defining the success criterion. Our approach here is to
explicitly define and directly optimize the balance metric that is relevant for the
given problem.

The `pybalance` library implements several routines for optimizing the balance
between non-random populations. To learn more about these methods, head on over
to the [demos](https://bayer-group.github.io/pybalance/02_demos.html). Then give
The `pybalance` library implements several routines for optimizing balance. To learn more
about these methods, head on over to the
[demos](https://bayer-group.github.io/pybalance/02_demos.html). Then give
the code a spin for yourself by following the
[installation instructions](https://bayer-group.github.io/pybalance/01_installation.html).

Expand Down
2 changes: 1 addition & 1 deletion sphinx/demos/lp_matcher.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"\\begin{equation}\n",
"\\begin{aligned}\n",
"& \\underset{\\hat{P}}{\\text{minimize}}\n",
"& & \\sum_k |\\mu_{\\hat{P},k} - \\mu_{T,k}| \\\\\n",
"& & \\sum_k |\\mu_{\\hat{P}k} - \\mu_{Tk}| \\\\\n",
"& \\text{subject to}\n",
"& & |\\hat{P}| = P^* \\\\\n",
"& & & |\\hat{T}| = T^* \\\\\n",
Expand Down
Loading

0 comments on commit b9c6f03

Please sign in to comment.