<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>svy Learn</title>
<link>https://svylab.com/learn/case-studies/</link>
<atom:link href="https://svylab.com/learn/case-studies/index.xml" rel="self" type="application/rss+xml"/>
<description>Case studies showing svy applied to national survey microdata, including validations of design-based estimators against R&#39;s survey ecosystem and domain-specific analyses in public health and official statistics.
</description>
<generator>quarto-1.8.24</generator>
<lastBuildDate>Fri, 24 Apr 2026 04:00:00 GMT</lastBuildDate>
<item>
  <title>svy on Brazil’s TIC Domicílios 2025</title>
  <dc:creator>Mamadou S. Diallo</dc:creator>
  <dc:creator>Thiago Meireles</dc:creator>
  <link>https://svylab.com/learn/case-studies/tic-domicilios-brazil-2026/</link>
  <description><![CDATA[ 




<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>TL;DR
</div>
</div>
<div class="callout-body-container callout-body">
<p>In April 2026, <strong>Thiago Meireles</strong> (<a href="https://cetic.br">CETIC.br</a>) published an independent comparison of <code>svy</code> against R’s <code>survey</code> package using microdata from Brazil’s <strong>TIC Domicílios 2025</strong>. After aligning the bootstrap scale convention used by each implementation, the two libraries produce numerically identical results.</p>
<p>The exercise stress-tests two practical details that matter on production microdata:</p>
<ul>
<li>The <strong>bootstrap scale convention</strong> — Canty-Davison (R default) vs.&nbsp;Rao-Wu (svy default), with the producer’s own scale recoverable via <code>repdesign$scale</code>.</li>
<li>The distinction between <strong><code>svymean</code> on an indicator</strong> (Taylor-linearized SE) and <strong><code>svyciprop</code></strong> (logit-scale SE recommended for proportions near 0 or 1) — relevant for any binary outcome.</li>
</ul>
<p>→ <a href="https://thiagomeireles.com.br/estatistica/2026/04/24/comparacao-survey-svy.html">Read the original post (Portuguese)</a></p>
</div>
</div>
</section>
<section id="background" class="level2">
<h2 class="anchored" data-anchor-id="background">Background</h2>
<p>The <a href="https://cetic.br/pt/pesquisa/domicilios/">TIC Domicílios</a> survey is conducted annually by <a href="https://cetic.br">CETIC.br</a>, the Regional Center for Studies on the Development of the Information Society at NIC.br, to measure ICT access and use across Brazilian households. The survey uses a complex multi-stage probability design with bootstrap replicate weights published by the producer.</p>
</section>
<section id="what-the-analysis-covers" class="level2">
<h2 class="anchored" data-anchor-id="what-the-analysis-covers">What the analysis covers</h2>
<p>The comparison reproduces a representative set of TIC Domicílios indicators in both R and Python, focusing on:</p>
<ul>
<li><strong>Bootstrap variance estimation</strong>, including the distinction between the Canty-Davison scale convention used by R’s <code>survey</code> (extracted from <code>repdesign$scale</code> after replicate construction) and the Rao-Wu scale convention used internally by <code>svy</code>.</li>
<li><strong>Proportion estimation</strong>, comparing the Taylor-linearized indicator approach (<code>svymean</code>) with the logit-scale approach (<code>svyciprop</code>) recommended for proportions near 0 or 1.</li>
<li><strong>Domain estimation</strong> by geographic area.</li>
</ul>
<p>After aligning the bootstrap scale convention, the two implementations agree to machine precision.</p>
</section>
<section id="why-this-matters" class="level2">
<h2 class="anchored" data-anchor-id="why-this-matters">Why this matters</h2>
<p>TIC Domicílios is a production national survey at a producer-set bootstrap scale, not a textbook example. Confirming that <code>svy</code> reproduces R’s results on real producer microdata — once the variance conventions are made explicit — is the right kind of stress test for an analytical package. The exercise also surfaces a practical point for users: producer-published replicate weights carry scale information that downstream tools must respect.</p>
</section>
<section id="read-the-full-post" class="level2">
<h2 class="anchored" data-anchor-id="read-the-full-post">Read the full post</h2>
<p>→ <a href="https://thiagomeireles.com.br/estatistica/2026/04/24/comparacao-survey-svy.html">Comparação entre survey (R) e svy (Python) — Thiago Meireles</a></p>
<hr>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Community signal
</div>
</div>
<div class="callout-body-container callout-body">
<p><strong>Help make svy the standard for survey analysis in Python</strong></p>
<p>If rigorous, design-based survey inference in Python matters to you, starring the repository helps signal demand and prioritize validation and stability work.</p>
<p>→ <a href="https://github.com/samplics-org/svy">Star svy on GitHub</a></p>
</div>
</div>



</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>Validation</category>
  <category>Community</category>
  <category>Brazil</category>
  <category>Bootstrap</category>
  <guid>https://svylab.com/learn/case-studies/tic-domicilios-brazil-2026/</guid>
  <pubDate>Fri, 24 Apr 2026 04:00:00 GMT</pubDate>
  <media:content url="https://svylab.com/learn/case-studies/tic-domicilios-brazil-2026/thumbnail.png" medium="image" type="image/png" height="79" width="144"/>
</item>
<item>
  <title>svy on Mexico’s ENIGH 2024</title>
  <dc:creator>Mamadou S. Diallo</dc:creator>
  <dc:creator>Claudio Daniel Pacheco-Castro</dc:creator>
  <link>https://svylab.com/learn/case-studies/enigh-mexico-2026/</link>
  <description><![CDATA[ 




<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>TL;DR
</div>
</div>
<div class="callout-body-container callout-body">
<p>In early 2026, <strong>Claudio Daniel Pacheco-Castro</strong> published an independent comparison of <code>svy</code> against R’s <code>srvyr</code> package using microdata from Mexico’s <strong>ENIGH 2024</strong> — the national income and expenditure survey conducted by INEGI. The Python and R implementations produce numerically equivalent results.</p>
<p>The walkthrough covers a complete ENIGH analytical workflow:</p>
<ul>
<li><strong>Survey design declaration</strong> with ENIGH’s stratification, primary sampling units, and final weights.</li>
<li><strong>Weighted point estimation and standard errors</strong> for substantive indicators including the housing-deprivation measure (<em>rezago habitacional</em>).</li>
<li><strong>Disaggregation by federal entity</strong>, demonstrating domain estimation across Mexico’s 32 states.</li>
</ul>
<p>→ <a href="https://claudiodanielpc.substack.com/p/de-r-a-python-trabajar-con-microdatos">Read the original post (Spanish)</a></p>
</div>
</div>
</section>
<section id="background" class="level2">
<h2 class="anchored" data-anchor-id="background">Background</h2>
<p>The <a href="https://en.www.inegi.org.mx/programas/enigh/nc/2024/">Encuesta Nacional de Ingresos y Gastos de los Hogares (ENIGH)</a> is Mexico’s national income and expenditure survey, conducted by INEGI. It uses a complex stratified multi-stage probability design and is the primary microdata source for measuring poverty, inequality, and household consumption in Mexico.</p>
</section>
<section id="what-the-analysis-covers" class="level2">
<h2 class="anchored" data-anchor-id="what-the-analysis-covers">What the analysis covers</h2>
<p>The replication walks through a full ENIGH analytical workflow in Python and contrasts it with the equivalent <code>srvyr</code> code in R. It covers:</p>
<ul>
<li><strong>Survey design declaration</strong> with ENIGH’s stratification, primary sampling units, and final weights.</li>
<li><strong>Weighted point estimation and standard errors</strong> for indicators including the housing-deprivation indicator (<em>rezago habitacional</em>).</li>
<li><strong>Disaggregation by federal entity</strong>, demonstrating domain estimation across Mexico’s 32 states.</li>
</ul>
<p>The Python and R implementations produce numerically equivalent results across the indicators tested.</p>
</section>
<section id="why-this-matters" class="level2">
<h2 class="anchored" data-anchor-id="why-this-matters">Why this matters</h2>
<p>ENIGH is widely used by Mexican researchers, INEGI, CONEVAL, and consultancies for poverty and inequality analysis. A reproducible Python pathway that matches the established R workflow lowers the barrier for analysts who work primarily in Python to engage with ENIGH microdata without changing their existing tooling.</p>
</section>
<section id="read-the-full-post" class="level2">
<h2 class="anchored" data-anchor-id="read-the-full-post">Read the full post</h2>
<p>→ <a href="https://claudiodanielpc.substack.com/p/de-r-a-python-trabajar-con-microdatos">De R a Python: trabajar con microdatos de encuestas complejas — Claudio Pacheco</a></p>
<hr>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Community signal
</div>
</div>
<div class="callout-body-container callout-body">
<p><strong>Help make svy the standard for survey analysis in Python</strong></p>
<p>If rigorous, design-based survey inference in Python matters to you, starring the repository helps signal demand and prioritize validation and stability work.</p>
<p>→ <a href="https://github.com/samplics-org/svy">Star svy on GitHub</a></p>
</div>
</div>



</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>Validation</category>
  <category>Community</category>
  <category>Mexico</category>
  <guid>https://svylab.com/learn/case-studies/enigh-mexico-2026/</guid>
  <pubDate>Sun, 15 Feb 2026 05:00:00 GMT</pubDate>
  <media:content url="https://svylab.com/learn/case-studies/enigh-mexico-2026/thumbnail.png" medium="image" type="image/png" height="106" width="144"/>
</item>
</channel>
</rss>
