<?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>Gonzalo Llamosas García</title>
<link>https://gonzalollamosas.com/blog/</link>
<atom:link href="https://gonzalollamosas.com/blog/index.xml" rel="self" type="application/rss+xml"/>
<description>Notes on fiscal policy, public debt and econometric methods, in English or Spanish.</description>
<image>
<url>https://gonzalollamosas.com/images/profile.jpg</url>
<title>Gonzalo Llamosas García</title>
<link>https://gonzalollamosas.com/blog/</link>
<height>144</height>
<width>144</width>
</image>
<generator>quarto-1.11.9</generator>
<lastBuildDate>Wed, 10 Jun 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>Clean controls in practice: estimating debt effects with LP-DiD</title>
  <dc:creator>Gonzalo Llamosas García</dc:creator>
  <link>https://gonzalollamosas.com/blog/posts/lp-did-clean-controls.html</link>
  <description><![CDATA[ 
<header class="site-header">
  <div class="wrap">
    <a class="site-name en-only" href="../../"><img class="site-logo" src="https://gonzalollamosas.com/images/logo/logo-light.svg" alt="" width="56" height="56"><span class="site-id"><span class="site-title">Gonzalo Llamosas García</span><span class="site-role">Assistant Professor in Public Finance at the University of Málaga</span></span></a>
    <a class="site-name es-only" href="../../es/"><img class="site-logo" src="https://gonzalollamosas.com/images/logo/logo-light.svg" alt="" width="56" height="56"><span class="site-id"><span class="site-title">Gonzalo Llamosas García</span><span class="site-role">Profesor de Hacienda Pública en la Universidad de Málaga</span></span></a>
    
    
  </div>
</header>
<script>
(function () {
  // Quarto places include-before-body inside <main>; lift the header to the top of <body>
  var header = document.querySelector(".site-header");
  if (header) document.body.insertBefore(header, document.body.firstChild);
  // counterpart page in the other language, and the current section in the nav
  var path = location.pathname.replace(/index\.html$/, "");
  var es = /^es/.test(document.documentElement.lang);
  var pairs = [["/", "/es/"], ["/about.html", "/es/sobre-mi.html"], ["/teaching.html", "/es/docencia.html"], ["/blog/", "/es/divulgacion.html"], ["/cv/", "/es/cv.html"], ["/debt.html", "/es/deuda.html"]];
  var target = es ? "/" : "/es/";
  pairs.forEach(function (p) {
    if (!es && path === p[0]) target = p[1];
    if (es && path === p[1]) target = p[0];
  });
  if (path.indexOf("/blog/posts/") === 0) target = es ? "/blog/" : "/es/divulgacion.html";
  if (path === "/es/irpf.html") target = "/debt.html";
  document.querySelectorAll(".lang-switch").forEach(function (a) { a.setAttribute("href", target); });
  // «Datos» has two tabs, the public-debt panel and the IRPF simulator; the menu points to the first
  var tabs = [["/es/deuda.html", "Deuda pública"], ["/es/irpf.html", "Simulador del IRPF"]];
  var tabbed = tabs.some(function (t) { return t[0] === path; });
  var section = tabbed ? tabs[0][0] : path;
  document.querySelectorAll(".site-nav a:not(.lang-switch)").forEach(function (a) {
    if (a.hash) return;
    var h = a.pathname.replace(/index\.html$/, "");   // Quarto rewrites hrefs as relative paths
    if (h === section || (h.slice(-1) === "/" && h !== "/" && path.indexOf(h) === 0)) {
      a.setAttribute("aria-current", "page");
    }
  });
  // the tabs go at the foot of the title band, which is already in the page when this runs
  var title = document.querySelector("#title-block-header .quarto-title");
  if (tabbed && title) {
    var nav = document.createElement("nav");
    nav.className = "data-tabs";
    nav.setAttribute("aria-label", "Datos");
    tabs.forEach(function (t) {
      var a = document.createElement("a");
      a.href = t[0];
      a.textContent = t[1];
      if (t[0] === path) a.setAttribute("aria-current", "page");
      nav.appendChild(a);
    });
    title.appendChild(nav);
    title.closest(".quarto-title-banner").classList.add("with-tabs");
  }
})();
</script>





<p><img src="https://gonzalollamosas.com/blog/posts/images/clean-controls.png" class="post-banner img-fluid" alt="Schematic of the clean-control rule. The treated unit enters at year t with a window to t plus h; a unit that treats inside the window is excluded; the remaining rows are clean controls."></p>
<p>Event studies on macro panels have a known problem. In a standard two-way fixed effects setup, countries that treated earlier serve as controls for countries that treat later, and vice versa. When treatment effects are heterogeneous or dynamic, those comparisons contaminate the estimates, a point the difference-in-differences literature has made forcefully over the last few years. Fiscal policy applications are especially exposed, because consolidation episodes cluster in time, think 2010 to 2013, and their effects build slowly.</p>
<p>The Local Projections Difference-in-Differences estimator of Dube, Girardi, Jordà and Taylor (2025, <em>Journal of Applied Econometrics</em>) addresses this with two design choices that are easy to state and easy to audit. In a paper with Cristina Mazas Pérez-Oleaga and José M. Domínguez-Martínez, now under review, we apply it to 125 fiscal consolidation entries in the EU-27. A few practical lessons follow.</p>
<section id="the-two-design-choices" class="level2">
<h2 class="anchored" data-anchor-id="the-two-design-choices">The two design choices</h2>
<p>First, treatment is defined as entry. The treatment indicator switches on in the year a country crosses the consolidation threshold, an improvement of at least one percentage point of potential GDP in the cyclically adjusted primary balance, and what is estimated is the effect of entering an episode, horizon by horizon.</p>
<p>Second, and this is the core of the method, the control group at each horizon contains only clean observations, meaning countries that are not treated anywhere in the window from the entry year to the horizon of interest. No forbidden comparisons enter the estimate. The outcome is a long difference from the pre-treatment year, and the specification adds country fixed effects, year-by-horizon fixed effects, two lags of the outcome change and lagged macro controls.</p>
<p>The cost is transparency about sample loss. Of the 128 entries in our panel, 125 enter the estimation sample at the impact horizon and 97 remain at five years, and the control pool shrinks as the horizon lengthens. We report the counts at every horizon, and we would encourage anyone using the method to do the same, because the estimand quietly changes with the surviving sample.</p>
</section>
<section id="the-estimator-in-a-few-lines-of-r" class="level2">
<h2 class="anchored" data-anchor-id="the-estimator-in-a-few-lines-of-r">The estimator in a few lines of R</h2>
<p>Stripped to its essentials, the whole procedure fits on one screen. For each horizon, build the long difference, flag the units that stay untreated through the window, keep entries and clean controls only, and run the fixed-effects regression.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(dplyr)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(fixest)</span>
<span id="cb1-3"></span>
<span id="cb1-4">lpdid_h <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(panel, h) {</span>
<span id="cb1-5">  df <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> panel <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb1-6">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">group_by</span>(country) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb1-7">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb1-8">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">d_y   =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lead</span>(debt_gdp, h) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lag</span>(debt_gdp, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>),           <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># long difference</span></span>
<span id="cb1-9">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">clean =</span> slider<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">slide_dbl</span>(entry, max, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.after =</span> h) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># untreated in [t, t+h]</span></span>
<span id="cb1-10">    ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb1-11">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ungroup</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb1-12">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(entry <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|</span> clean)                                <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># no forbidden comparisons</span></span>
<span id="cb1-13"></span>
<span id="cb1-14">  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># specification (ii) adds pb_l1, the primary balance in t-1</span></span>
<span id="cb1-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">feols</span>(d_y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> entry <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> d_debt_l1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> d_debt_l2 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> x_l1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|</span> country <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> year,</span>
<span id="cb1-16">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> df, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cluster =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>country)</span>
<span id="cb1-17">}</span>
<span id="cb1-18"></span>
<span id="cb1-19">irf <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lapply</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(h) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lpdid_h</span>(panel, h))</span>
<span id="cb1-20"></span>
<span id="cb1-21"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># 27 clusters: complement with a wild cluster bootstrap (Webb weights)</span></span>
<span id="cb1-22">fwildclusterboot<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">boottest</span>(irf[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]], <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">param =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"entry"</span>,</span>
<span id="cb1-23">                           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">B =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9999</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">type =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"webb"</span>)</span></code></pre></div></div>
<p>Each element of <code>irf</code> is one point of the impulse response, and the header figure of this post was drawn with the same logic. The real code adds the placebo horizons, the trimming and the robustness battery, but nothing conceptually new.</p>
</section>
<section id="what-we-learned-applying-it" class="level2">
<h2 class="anchored" data-anchor-id="what-we-learned-applying-it">What we learned applying it</h2>
<p>Inference with 27 clusters deserves more care than the default. We cluster at the country level and complement the usual standard errors with a wild cluster bootstrap using six-point Webb weights, which behaves better with few clusters. With our baseline controls, the short-run increase in the debt ratio survives both. The more useful lesson came from somewhere else.</p>
<p>Check covariate balance before reading any coefficient. Our entrants started with a primary balance 2.6 points of GDP worse than their controls, and countries with worse balances accumulate more debt whether or not they consolidate. Adding the lagged primary balance to the controls removes the short-run increase and leaves the response imprecisely estimated around zero. We now report every estimate with and without it.</p>
<p>Pre-trends are worth showing and worth reading with care. Placebo coefficients one to three years before entry are insignificant in both specifications, but under the baseline all three are positive, and a sensitivity analysis in the spirit of Rambachan and Roth (2023) shows that the baseline impact estimate is fragile to modest violations of parallel trends. An insignificant placebo is not the same as a flat pre-trend.</p>
<p>Power, not bias, is the binding constraint at long horizons. Our point estimates grow with the horizon while their precision falls, and the honest reading is that the short-run estimates are the informative ones.</p>
<p>The paper, which also decomposes the debt response exactly into the primary balance, the snowball effect and stock-flow adjustments, is under review; the <a href="../../research.html">Research</a> page has a summary.</p>
<p class="post-signature">Gonzalo Llamosas García, Málaga</p>


</section>

 ]]></description>
  <category>english</category>
  <category>methods</category>
  <category>fiscal policy</category>
  <guid>https://gonzalollamosas.com/blog/posts/lp-did-clean-controls.html</guid>
  <pubDate>Wed, 10 Jun 2026 00:00:00 GMT</pubDate>
  <media:content url="https://gonzalollamosas.com/blog/posts/images/clean-controls.png" medium="image" type="image/png" height="76" width="144"/>
</item>
<item>
  <title>¿Reduce la consolidación fiscal la deuda pública? Lo que dicen los datos de la UE</title>
  <dc:creator>Gonzalo Llamosas García</dc:creator>
  <link>https://gonzalollamosas.com/blog/posts/consolidacion-fiscal-deuda.html</link>
  <description><![CDATA[ 
<header class="site-header">
  <div class="wrap">
    <a class="site-name en-only" href="../../"><img class="site-logo" src="https://gonzalollamosas.com/images/logo/logo-light.svg" alt="" width="56" height="56"><span class="site-id"><span class="site-title">Gonzalo Llamosas García</span><span class="site-role">Assistant Professor in Public Finance at the University of Málaga</span></span></a>
    <a class="site-name es-only" href="../../es/"><img class="site-logo" src="https://gonzalollamosas.com/images/logo/logo-light.svg" alt="" width="56" height="56"><span class="site-id"><span class="site-title">Gonzalo Llamosas García</span><span class="site-role">Profesor de Hacienda Pública en la Universidad de Málaga</span></span></a>
    
    
  </div>
</header>
<script>
(function () {
  // Quarto places include-before-body inside <main>; lift the header to the top of <body>
  var header = document.querySelector(".site-header");
  if (header) document.body.insertBefore(header, document.body.firstChild);
  // counterpart page in the other language, and the current section in the nav
  var path = location.pathname.replace(/index\.html$/, "");
  var es = /^es/.test(document.documentElement.lang);
  var pairs = [["/", "/es/"], ["/about.html", "/es/sobre-mi.html"], ["/teaching.html", "/es/docencia.html"], ["/blog/", "/es/divulgacion.html"], ["/cv/", "/es/cv.html"], ["/debt.html", "/es/deuda.html"]];
  var target = es ? "/" : "/es/";
  pairs.forEach(function (p) {
    if (!es && path === p[0]) target = p[1];
    if (es && path === p[1]) target = p[0];
  });
  if (path.indexOf("/blog/posts/") === 0) target = es ? "/blog/" : "/es/divulgacion.html";
  if (path === "/es/irpf.html") target = "/debt.html";
  document.querySelectorAll(".lang-switch").forEach(function (a) { a.setAttribute("href", target); });
  // «Datos» has two tabs, the public-debt panel and the IRPF simulator; the menu points to the first
  var tabs = [["/es/deuda.html", "Deuda pública"], ["/es/irpf.html", "Simulador del IRPF"]];
  var tabbed = tabs.some(function (t) { return t[0] === path; });
  var section = tabbed ? tabs[0][0] : path;
  document.querySelectorAll(".site-nav a:not(.lang-switch)").forEach(function (a) {
    if (a.hash) return;
    var h = a.pathname.replace(/index\.html$/, "");   // Quarto rewrites hrefs as relative paths
    if (h === section || (h.slice(-1) === "/" && h !== "/" && path.indexOf(h) === 0)) {
      a.setAttribute("aria-current", "page");
    }
  });
  // the tabs go at the foot of the title band, which is already in the page when this runs
  var title = document.querySelector("#title-block-header .quarto-title");
  if (tabbed && title) {
    var nav = document.createElement("nav");
    nav.className = "data-tabs";
    nav.setAttribute("aria-label", "Datos");
    tabs.forEach(function (t) {
      var a = document.createElement("a");
      a.href = t[0];
      a.textContent = t[1];
      if (t[0] === path) a.setAttribute("aria-current", "page");
      nav.appendChild(a);
    });
    title.appendChild(nav);
    title.closest(".quarto-title-banner").classList.add("with-tabs");
  }
})();
</script>





<p><img src="https://gonzalollamosas.com/blog/posts/images/irf-deuda.png" class="post-banner img-fluid" alt="Respuesta del ratio deuda/PIB a la entrada en consolidación fiscal con intervalos del 95 %. Izquierda: controles habituales, la subida es significativa en el año de entrada y el siguiente. Derecha: añadiendo el saldo primario inicial, las estimaciones se sitúan en torno a cero."></p>
<p><em>Actualizado el 21 de octubre de 2026. La primera versión de esta entrada resumía un borrador anterior del trabajo; la versión revisada, ahora en evaluación en una revista, no mantiene algunas de aquellas conclusiones y esta entrada se ha reescrito para reflejarla.</em></p>
<p>La intuición es sencilla. Si un país recorta su déficit, su deuda debería crecer menos y el ratio deuda/PIB debería bajar. Con Cristina Mazas Pérez-Oleaga y José M. Domínguez-Martínez hemos contrastado esa intuición con los datos de la UE-27 entre 1996 y 2024. No encontramos que entrar en consolidación fiscal reduzca el ratio de deuda en ninguno de los horizontes que medimos, hasta cinco años.</p>
<section id="qué-hicimos" class="level2">
<h2 class="anchored" data-anchor-id="qué-hicimos">Qué hicimos</h2>
<p>Llamamos entrada en consolidación al año en que el saldo primario ajustado por el ciclo mejora al menos un punto del PIB potencial. En la muestra de estimación hay 125 entradas. Medimos su efecto con proyecciones locales en diferencias en diferencias (Dube, Girardi, Jordà y Taylor, 2025), que comparan cada entrada solo con países que no consolidan en la ventana que se está midiendo.</p>
<p>Hay un problema de partida: los países que consolidan no se parecen a los demás. Llegan con un saldo primario 2,6 puntos peor que los países con los que se comparan, y la probabilidad de entrar en consolidación pasa del 8 % con las cuentas equilibradas al 46 % con déficits por encima del 7 %. Por eso damos cada resultado de dos maneras: con los controles habituales y añadiendo el saldo primario del año anterior, es decir, comparando con países que parten de una posición fiscal parecida.</p>
</section>
<section id="qué-encontramos" class="level2">
<h2 class="anchored" data-anchor-id="qué-encontramos">Qué encontramos</h2>
<p>Frente a países con una posición fiscal de partida parecida, no detectamos ninguna reducción del ratio de deuda. Las estimaciones son ligeramente negativas los tres primeros años, con intervalos de uno o dos puntos del PIB a cada lado, y a cuatro y cinco años los intervalos son tan anchos que dicen poco en cualquier dirección.</p>
<p>Con los controles habituales, en cambio, el ratio sube alrededor de un punto en el año de entrada y en el siguiente, y esa subida es estadísticamente significativa. La diferencia entre las dos lecturas está en el punto de partida: los países con peor saldo acumulan más deuda en los años siguientes, consoliden o no.</p>
<p>El esfuerzo fiscal es real. El saldo primario mejora y su contribución acumulada a la deuda llega a varios puntos del PIB. ¿Por qué no se nota en el ratio? Descomponemos la variación de la deuda de forma exacta en tres partes: el saldo primario, el efecto bola de nieve (intereses frente a crecimiento) y los ajustes stock-flujo, que recogen lo que mueve la deuda sin pasar por el déficit. La mejora del saldo primario queda compensada por las otras dos partes, y un contraste conjunto rechaza en todos los horizontes que la variación de la deuda sea igual a la contribución del saldo primario por sí sola.</p>
<p>Esa compensación viene acompañada de tres cosas:</p>
<ul>
<li>El PIB real cae y sigue por debajo del de los países de comparación durante todo el horizonte.</li>
<li>La inversión pública cae de forma persistente. Es la partida que la consolidación recorta con más regularidad.</li>
<li>No detectamos una bajada de las primas de riesgo. Los intervalos no excluyen bajadas moderadas, y los mercados pueden reaccionar más al anuncio de un paquete que a su ejecución.</li>
</ul>
<p>En los primeros años, que es donde los datos de Eurostat permiten ver su composición, los ajustes stock-flujo se concentran en depósitos, valores de deuda y ajustes de valoración; las participaciones en capital y los préstamos aportan poco.</p>
</section>
<section id="lo-que-no-podemos-decir" class="level2">
<h2 class="anchored" data-anchor-id="lo-que-no-podemos-decir">Lo que no podemos decir</h2>
<ul>
<li>Que la consolidación no tenga ningún efecto sobre la deuda. Decimos que no detectamos una reducción, y a horizontes largos los intervalos son muy anchos.</li>
<li>Qué diseño funciona mejor. Las diferencias según la composición del ajuste (gasto o ingresos, proteger o no la inversión) y según el diferencial entre tipo de interés y crecimiento son imprecisas y dependen de la especificación, así que no sacamos conclusiones de diseño.</li>
<li>Si las ayudas al sector financiero explican los ajustes stock-flujo. El contraste con las tablas de Eurostat sobre esas ayudas no permite saberlo.</li>
</ul>
</section>
<section id="por-qué-importa-ahora" class="level2">
<h2 class="anchored" data-anchor-id="por-qué-importa-ahora">Por qué importa ahora</h2>
<p>El marco fiscal europeo reformado en 2024 fija sendas de ajuste a partir de un análisis de sostenibilidad de la deuda y añade dos salvaguardas, una para la deuda y otra para el déficit. Nuestras estimaciones no evalúan el cumplimiento de esas salvaguardas, pero sí dicen algo de las proyecciones con las que se calibran las sendas. En ellas la pérdida de producto desaparece en pocos años y los ajustes stock-flujo se fijan en cero más allá del horizonte de previsión. En los datos, la pérdida de producto persiste y la contribución de los ajustes stock-flujo sigue siendo positiva en las estimaciones puntuales, aunque de forma imprecisa a horizontes largos. Vale la pena comprobar cómo cambian las sendas proyectadas con esos dos supuestos.</p>
<p>El trabajo está en evaluación. Cuando haya una versión pública la enlazaré desde la página de <a href="../../research.html">Research</a>.</p>
</section>
<section id="la-figura-de-cabecera-en-unas-líneas-de-r" class="level2">
<h2 class="anchored" data-anchor-id="la-figura-de-cabecera-en-unas-líneas-de-r">La figura de cabecera, en unas líneas de R</h2>
<p>Las figuras de este blog se generan con código reproducible. La de arriba usa las estimaciones y los errores estándar del trabajo, agrupados por país (27 grupos), y se dibuja así.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ggplot2)</span>
<span id="cb1-2"></span>
<span id="cb1-3">irf <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">data.frame</span>(</span>
<span id="cb1-4">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">h    =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>),</span>
<span id="cb1-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">spec =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Controles habituales"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"+ saldo primario inicial"</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">each =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>),</span>
<span id="cb1-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">beta =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.87</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.31</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.20</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.36</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.28</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.62</span>,</span>
<span id="cb1-7">           <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.15</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.37</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.54</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.72</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.34</span>),</span>
<span id="cb1-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">se   =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.34</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.59</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.85</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.24</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.56</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.82</span>,</span>
<span id="cb1-9">           <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.40</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.66</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.94</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.59</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.46</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.83</span>)</span>
<span id="cb1-10">)</span>
<span id="cb1-11">tc <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">qt</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.975</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">df =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">26</span>)   <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># 27 países</span></span>
<span id="cb1-12"></span>
<span id="cb1-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ggplot</span>(irf, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">aes</span>(h, beta)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_hline</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">yintercept =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">colour =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"grey70"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_ribbon</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">aes</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ymin =</span> beta <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> tc <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> se, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ymax =</span> beta <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> tc <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> se),</span>
<span id="cb1-16">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fill =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#E6AA04"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">alpha =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.18</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-17">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_line</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">colour =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#E6AA04"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">linewidth =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_point</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">colour =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#E6AA04"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">facet_wrap</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> spec) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">labs</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">x =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Años desde la entrada"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Deuda/PIB (p.p.)"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb1-21">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme_minimal</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">base_size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>)</span></code></pre></div></div>
<p class="post-signature">Gonzalo Llamosas García, Málaga</p>


</section>

 ]]></description>
  <category>español</category>
  <category>fiscal policy</category>
  <category>public debt</category>
  <guid>https://gonzalollamosas.com/blog/posts/consolidacion-fiscal-deuda.html</guid>
  <pubDate>Wed, 10 Jun 2026 00:00:00 GMT</pubDate>
  <media:content url="https://gonzalollamosas.com/blog/posts/images/irf-deuda.png" medium="image" type="image/png" height="76" width="144"/>
</item>
</channel>
</rss>
