Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Nov 4, 2024
1 parent f699855 commit f2c8437
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
82c795fd
dd3abc35
14 changes: 4 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,15 @@ <h1 class="title">Matching and Weighting for Causal Inference: A Primer and Tuto

<section id="introduction" class="level1 unnumbered">
<h1 class="unnumbered">Introduction</h1>
<p><strong>Matching and weighting</strong>, often also known collectively as <strong>propensity score analysis</strong>, are popular methods of adjusting for confounding in observational studies, i.e., studies where patients are not randomly assigned into treatment groups. Despite their popularity in applied research, there are many nuances to the methods that are often missed by researchers, including about the assumptions required, the quantities that can be estimated, and the correct procedures for performing and reporting an analysis. The goal of this guide is to summarize best practices in matching and weighting for medical and social science researchers, highlighting the decisions researchers must make to validly perform and interpret an analysis. This guide is not a substitute for a PhD in biostatistics or even a course in causal inference or propensity score analysis; it should be seen as a starting point that synthesizes the existing literature and provides references for further reading to deepen one’s understanding of the methods involved.</p>
<p><strong>Matching and weighting</strong>, a popular special case of which is sometimes known as <strong>propensity score analysis</strong>, are popular methods of adjusting for confounding in observational studies, i.e., studies where patients are not randomly assigned into treatment groups. Despite their popularity in applied research, there are many nuances to the methods that are often missed by researchers, including about the assumptions required, the quantities that can be estimated, and the correct procedures for performing and reporting an analysis. The goal of this guide is to summarize best practices in matching and weighting for medical and social science researchers, highlighting the decisions researchers must make to validly perform and interpret an analysis. This guide is not a substitute for a PhD in biostatistics or even a course in causal inference or propensity score analysis; it should be seen as a starting point that synthesizes the existing literature and provides references for further reading to deepen one’s understanding of the methods involved.</p>
<p>Although matching and weighting are analytic methods, the key to performing them well is to understand the theoretical and substantive considerations relevant to the methods; therefore, this guide will focus on those aspects. For the more applied parts of the tutorial, R code and output will be presented to demonstrate the procedure.</p>
<p>This document will describe the three basic steps of performing a matching or weighting analysis: 1) planning the analysis, 2) running the analysis, and 3) reporting the analysis. In <a href="planning.html" class="quarto-xref"><span>1&nbsp; Planning the Analysis</span></a>, we will describe the conceptual steps that must be done to determine what options will be selected in subsequent steps and to align the analysis with the quantity of interest. In <a href="running.html" class="quarto-xref"><span>2&nbsp; Basic Steps</span></a> and the chapters that follow, we provide step-by-step instructions for implementing the computational steps of performing the analysis, including fitting models and estimating quantities of interest. In <a href="reporting.html" class="quarto-xref"><span>10&nbsp; Reporting the Analysis</span></a>, we provide guidelines for reporting the results of an analysis, including information to include in tables and figures and information necessary for another researchers to replicate your findings. Finally, in <a href="example.html" class="quarto-xref"><span>11&nbsp; Example Data</span></a> and the chapters that follow, we present an example analysis that includes R code to implement the methods.</p>
<section id="what-are-matching-and-weighting" class="level3">
<h3 class="anchored" data-anchor-id="what-are-matching-and-weighting">What are Matching and Weighting?</h3>
<p>Matching and weighting are two of many methods that researchers can use to adjust for confounding when estimating the effect of a variable (e.g., a treatment) on an outcome. What distinguishes them from other methods are the assumptions they require in order to be valid and the robustness to unknown features of the data. Broadly, matching and weighting seek to make the treatment independent of confounders so that the association between the treatment and outcome is unbiased for the causal effect of the treatment on the outcome. Matching and weighting often work by using a new variable constructed as part of the analysis called the “propensity score”, which is why the methods are often known collectively as “propensity score analysis”, though there are variations of matching and weighting that serve the same function but do not involve the propensity score<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a>. Many introductory articles have been written about matching and weighting, including <span class="citation" data-cites="austinIntroductionPropensityScore2011">Austin (<a href="references.html#ref-austinIntroductionPropensityScore2011" role="doc-biblioref">2011</a>)</span>, <span class="citation" data-cites="harderPropensityScoreTechniques2010">Harder, Stuart, and Anthony (<a href="references.html#ref-harderPropensityScoreTechniques2010" role="doc-biblioref">2010</a>)</span>, <span class="citation" data-cites="caliendoPracticalGuidanceImplementation2008">Caliendo and Kopeinig (<a href="references.html#ref-caliendoPracticalGuidanceImplementation2008" role="doc-biblioref">2008</a>)</span>, <span class="citation" data-cites="shadishPrimerPropensityScore2010">Shadish and Steiner (<a href="references.html#ref-shadishPrimerPropensityScore2010" role="doc-biblioref">2010</a>)</span>, and <span class="citation" data-cites="benedettoStatisticalPrimerPropensity2018">Benedetto et al. (<a href="references.html#ref-benedettoStatisticalPrimerPropensity2018" role="doc-biblioref">2018</a>)</span>.</p>
<p>Consider a situation with a two-level treatment (e.g., treated and control) in which participants were free to select the treatment they received. In order to estimate the causal effect of the treatment on an outcome (e.g., death at 24 months), one needs to make these groups comparable on the variables that induce confounding (i.e., confounders, common causes of the treatment and outcome). Matching and weighting involve dropping, weighting, or stratifying units in the sample so that in the adjusted sample, the treatment is independent from the variables used in the adjustment.</p>
<p>Matching and weighting are two of many methods that researchers can use to adjust for confounding when estimating the effect of a variable (e.g., a treatment) on an outcome. What distinguishes them from other methods are the assumptions they require in order to be valid and the robustness to unknown features of the data. Broadly, matching and weighting seek to make the treatment independent of confounders so that the association between the treatment and outcome is unbiased for the causal effect of the treatment on the outcome. Common methods of matching and weighting often work by using a new variable constructed as part of the analysis called the “propensity score”, which is why the methods are often known collectively as “propensity score analysis”, though there are variations of matching and weighting that serve the same function but do not involve the propensity score (and often perform better than those that do). Many introductory articles have been written about matching and weighting, including <span class="citation" data-cites="austinIntroductionPropensityScore2011">Austin (<a href="references.html#ref-austinIntroductionPropensityScore2011" role="doc-biblioref">2011</a>)</span>, <span class="citation" data-cites="harderPropensityScoreTechniques2010">Harder, Stuart, and Anthony (<a href="references.html#ref-harderPropensityScoreTechniques2010" role="doc-biblioref">2010</a>)</span>, <span class="citation" data-cites="caliendoPracticalGuidanceImplementation2008">Caliendo and Kopeinig (<a href="references.html#ref-caliendoPracticalGuidanceImplementation2008" role="doc-biblioref">2008</a>)</span>, <span class="citation" data-cites="shadishPrimerPropensityScore2010">Shadish and Steiner (<a href="references.html#ref-shadishPrimerPropensityScore2010" role="doc-biblioref">2010</a>)</span>, and <span class="citation" data-cites="benedettoStatisticalPrimerPropensity2018">Benedetto et al. (<a href="references.html#ref-benedettoStatisticalPrimerPropensity2018" role="doc-biblioref">2018</a>)</span>.</p>
<p>Consider a situation with a two-level treatment (e.g., treated and control) in which participants were free to select the treatment they received. In order to estimate the causal effect of the treatment on an outcome (e.g., death at 24 months), one needs to make these groups comparable on the variables that induce confounding (i.e., confounders, common causes of the treatment and outcome). Matching and weighting involve dropping, up- and down-weighting, or stratifying units in the sample so that in the adjusted sample, the treatment is independent from the variables used in the adjustment.</p>
<p>The most commonly used method of matching and weighting is propensity score matching, described originally in <span class="citation" data-cites="rosenbaumCentralRolePropensity1983">Rosenbaum and Rubin (<a href="references.html#ref-rosenbaumCentralRolePropensity1983" role="doc-biblioref">1983</a>)</span>, which involves computing the propensity score for each unit (more details on that later), finding pairs of units that have similar values of the propensity score, and discarding from the sample all units without pairs. What is left is (ideally) a sample in which the distributions of the variables used to compute the propensity score are close to identical between the treated and control groups, just as they would be in a randomized experiment. Despite its popularity, propensity score matching can do more harm than good <span class="citation" data-cites="kingWhyPropensityScores2019">(<a href="references.html#ref-kingWhyPropensityScores2019" role="doc-biblioref">King and Nielsen 2019</a>)</span>; this guide also explains alternative methods that avoid many of the problems propensity score matching faces.</p>
<p>Matching and weighting are common in medical and social science research because researchers are often interested in the effect of a drug, vaccine, procedure, policy, or behavior on individual outcomes (e.g., survival, hospital costs, earnings, etc.) but are not in the position to run a randomized control trial and instead have retrospective administrative data or large surveys on individuals receiving those treatments. Without adjustment, individuals receiving treatment may be quite different from those not receiving treatment; they may be older, more likely to be a certain sex, more likely to be a certain race, more likely to have certain comorbidities, etc. Comparing treated and untreated individuals on the specified outcome would not yield a valid estimate of the causal effect of the treatment on the outcome because any observed differences could be driven instead by differences in the distributions of the confounders. Matching and weighting help to isolate the effect of the treatment so that any observed difference in the outcome can only be attributed to treatment.</p>
<p>Matching and weighting are common in medical and social science research because researchers are often interested in the causal effect of a drug, vaccine, procedure, policy, or behavior on individual outcomes (e.g., survival, hospital costs, earnings, etc.) but are not in the position to run a randomized control trial and instead have retrospective administrative data or large surveys on individuals receiving those treatments. Without adjustment, individuals receiving treatment may be quite different from those not receiving treatment; they may be older, more likely to be a certain sex, more likely to be a certain race, more likely to have certain comorbidities, etc. Comparing treated and untreated individuals on the specified outcome would not yield a valid estimate of the causal effect of the treatment on the outcome because any observed differences could be driven instead by differences in the distributions of the confounders. Matching and weighting help to isolate the effect of the treatment so that any observed difference in the outcome can only be attributed to treatment.</p>


<div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" role="list" style="display: none">
Expand Down Expand Up @@ -335,12 +335,6 @@ <h3 class="anchored" data-anchor-id="what-are-matching-and-weighting">What are M
</div>
</section>
</section>
<section id="footnotes" class="footnotes footnotes-end-of-document" role="doc-endnotes">
<hr>
<ol>
<li id="fn1"><p>For the sake of this tutorial, we will classify all methods that manipulate the sample using observed variables to remove confounding to fall under the scope of “propensity score analysis”, even though propensity scores are not always used to do this. Many of the best performing methods for this task do not use propensity scores at all.<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
</ol>
</section>

</main> <!-- /main -->
<script id="quarto-html-after-body" type="application/javascript">
Expand Down
Loading

0 comments on commit f2c8437

Please sign in to comment.