Skip to content

Commit

Permalink
small fixes to full doc example and paper
Browse files Browse the repository at this point in the history
  • Loading branch information
ronikobrosly committed Jul 5, 2020
1 parent 98a2759 commit 13afa12
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions docs/full_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
Health data: generating causal curves and examining mediation
=============================================================

The causal effect of blood lead levels on cognitive performance in children
---------------------------------------------------------------------------

To provide an end-to-end example of the sorts of analyses `cause-curve` can be used for, we'll
begin with an epidemiology topic. A notebook containing the pipeline to produce the following
begin with a health topic. A notebook containing the pipeline to produce the following
output `is available here <https://github.com/ronikobrosly/causal-curve/blob/master/examples/NHANES_BLL_example.ipynb>`_.
Note: Specific examples of the individual `causal-curve` tools with
code are available elsewhere in this documentation.


The causal effect of blood lead levels on cognitive performance in children
---------------------------------------------------------------------------

Despite the banning of the use of lead-based paint and the use of lead in gasoline in the United
States, lead exposure remains an enormous public health problem for children and adolescents. This
is particularly true for poorer children living in older homes in inner-city environments.
Expand Down Expand Up @@ -105,7 +106,7 @@ we found that the overall, mediating indirect effect of BLLs are 0.20 (0.17 - 0.
that lead exposure accounts for 20% of the relationship between low income and low test
performance in this population. The mediation tool also allows you to see how the indirect effect
varies as a function of the treatment. As the plot shows, the mediating effect is relatively flat,
although interesting there is a hint of an increase as income increases relative to the povetry line.
although interesting there is a hint of an increase as income increases relative to the poverty line.

.. image:: ../imgs/full_example/mediation_curve.png

Expand Down
8 changes: 4 additions & 4 deletions examples/NHANES_BLL_example.ipynb

Large diffs are not rendered by default.

Binary file modified imgs/full_example/mediation_curve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ potential outcomes / counterfactual framework [@Imai:2010]. While this approach
continuous mediator and outcome, as put forward by Imai it only allows for a binary treatment. As
mentioned above with the `TMLE` approach, the tool creates a series of binary treatment comparisons
and connects them to show the user how mediation varies as a function of the treatment. An interpretable,
overall mediation percentage is provided as well.
overall mediation proportion is provided as well.


# Statement of Need
Expand All @@ -116,7 +116,7 @@ and are instructive as to how the results of their analysis should be interprett

# Acknowledgements

We acknowledge contributions from Miguel-Angel Luque, Erica Moodie, and Mark van der Laan
We acknowledge the valuable feedback from Miguel-Angel Luque, Erica Moodie, and Mark van der Laan
during the creation of this project.


Expand Down

0 comments on commit 13afa12

Please sign in to comment.