<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>R | David I. Crabtree</title>
    <link>https://davidicrabtree.com/tag/r/</link>
      <atom:link href="https://davidicrabtree.com/tag/r/index.xml" rel="self" type="application/rss+xml" />
    <description>R</description>
    <generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Wed, 14 Oct 2026 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://davidicrabtree.com/media/icon_hu8c17a5937ab52ce8b7c5029d8fc4a85f_333311_512x512_fill_lanczos_center_3.png</url>
      <title>R</title>
      <link>https://davidicrabtree.com/tag/r/</link>
    </image>
    
    <item>
      <title>What Did Medicaid Do? Re-examining the Oregon Health Insurance Experiment</title>
      <link>https://davidicrabtree.com/portfolio/oregon-medicaid/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://davidicrabtree.com/portfolio/oregon-medicaid/</guid>
      <description>&lt;p&gt;In 2008, Oregon expanded Medicaid by lottery, creating one of the few randomized tests of what health insurance does. The study&amp;rsquo;s best-known paper (Baicker et al. 2013, &lt;em&gt;New England Journal of Medicine&lt;/em&gt;) found that Medicaid reduced depression and catastrophic medical spending but had no detectable effect on blood pressure, and it has been widely cited in debates over health policy.&lt;/p&gt;
&lt;p&gt;I rebuilt that analysis from the public-use data, reproduced its headline estimates, and asked how well the evidence supports the way the results are described.&lt;/p&gt;
&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reproduced the published results&lt;/strong&gt; in Python (pandas, statsmodels, linearmodels), with a parallel implementation in R that matches the Python results on every table.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Followed the original design:&lt;/strong&gt; lottery-based instrumental variables, survey weights, and household-clustered standard errors.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Checked the experiment:&lt;/strong&gt; response rates and covariate balance between lottery winners and losers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Extended the analysis&lt;/strong&gt; with power calculations, minimum detectable effects, and checks of specific claims in the paper.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;d-flex justify-content-center&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img src=&#34;https://davidicrabtree.github.io/oregon-medicaid-experiment/output/figures/main_effects.png&#34; alt=&#34;Effects of Medicaid coverage on three outcomes, with 95% confidence intervals&#34; loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id=&#34;what-i-found&#34;&gt;What I found&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Some of the paper&amp;rsquo;s summary claims go further than its evidence.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The blood pressure &amp;ldquo;null&amp;rdquo; can&amp;rsquo;t tell no effect from a meaningful one.&lt;/strong&gt; The study had a 67% chance of detecting a reduction the authors themselves call clinically significant. Its 95% confidence interval runs from a 44% reduction to a 27% increase.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The positive findings are stated more precisely than the data allow.&lt;/strong&gt; &amp;ldquo;Nearly eliminated&amp;rdquo; catastrophic spending describes a point estimate whose interval is consistent with a reduction as small as 13%.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The paper misstates its own definition of elevated blood pressure.&lt;/strong&gt; The published results use systolic &lt;em&gt;or&lt;/em&gt; diastolic thresholds; the table footnote says &lt;em&gt;and&lt;/em&gt;. Under the stated definition the control-group rate would be 7.0%, not 16.3%.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Covariate adjustment can&amp;rsquo;t recover the lost precision.&lt;/strong&gt; Pre-lottery characteristics shrink standard errors by only about 1%.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;d-flex justify-content-center&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img src=&#34;https://davidicrabtree.github.io/oregon-medicaid-experiment/output/figures/power_curve.png&#34; alt=&#34;Statistical power to detect reductions in elevated blood pressure&#34; loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id=&#34;takeaways&#34;&gt;Takeaways&lt;/h2&gt;
&lt;p&gt;A null result from an underpowered study is not evidence of no effect, and a significant result is not evidence of an effect as large as its point estimate.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://davidicrabtree.github.io/oregon-medicaid-experiment/report.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Read the full report&lt;/a&gt; for the full methods, balance checks, and replication details.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://davidicrabtree.com/data-science/&#34;&gt;← Back to Data Science&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
