Publication: The World Bank's MFMod Framework in Python with Modelflow
Loading...
Published
2025-11-15
ISSN
Date
2025-12-05
Author(s)
Editor(s)
Abstract
MFMod is the World Bank’s work-horse macro-structural economic modeling framework. It exists both as a linked system of 184 country-specific models that can be solved independently or as a larger system (MFMod), and as a series of standalone customized models, known collectively as MFMod Standalones (MFModSA). These Standalone models have been developed from the central model to fit the specific needs of individual countries. Both the central and Standalone models were developed using the EViews modeling language, and are run in that environment directly or through the intermediation of an easy-to-use excel front-end developed by the Bank. The main MFMod global model evolved from earlier macro-structural models developed during the 2000s to strengthen the basis for the forecasts produced by the World Bank. Some examples of these models were released on the World Bank’s isimulate platform https://isimulate.worldbank.org early in 2010, along with several CGE models dating from this period. These earlier models were substantially extended into what has become the main MFMod model. Since 2015, MFMod has been the Bank’s main tool for forecasting and economic analysis, and is used by all of the Bank’s country economists for the World Bank’s twice annual forecasting exercise The Macro Poverty Outlook (https://www.worldbank.org/en/publication/macro-poverty-outlook).
Link to Data Set
Citation
“Burns, Andrew; Hansen, Ib. 2025. The World Bank's MFMod Framework in Python with Modelflow. © World Bank. http://hdl.handle.net/10986/44037 License: CC BY-NC 3.0 IGO.”
Digital Object Identifier
Associated URLs
Associated content
Other publications in this report series
Journal
Journal Volume
Journal Issue
Collections
Related items
Showing items related by metadata.
Publication The World Bank Macro-Fiscal Model Technical Description(World Bank, Washington, DC, 2019-08)This paper outlines the structure and economic foundation of the World Bank's macroeconomic and fiscal model (MFMod). MFMod consists of individual country models for 181 countries. The models are used by country economists within the World Bank's Macroeconomics, Trade and Investment Global Practice to (i) generate country forecasts and (ii) simulate various policies. Each model has a similar structure and functional form, with variation reflecting data availability and economic specialization (notably for oil exporters). Although the functional forms are similar, the parameters are country specific and estimated at the country level. Forecasts across countries are live-linked, with the export market growth of each country calculated as a trade-weighted average of imports of each of its trading partners. Remittance inflows and outflows are balanced across countries through a similar mechanism. Other cross-country linkages come through the real effective exchange rate and export and import prices, which are a function of world commodity prices and local cost considerations.Publication Energy Subsidy Reform Assessment Framework(World Bank, Washington, DC, 2018-06-30)This note provides guidance on the different economy-wide modeling tools that can be utilized to quantify the economic effects of energy subsidy reform. ESRAF defines an energy subsidy as a deliberate policy action by the government that specifically targets electricity, fuels, or district heating and that has one or more of the following effects: i) It reduces the net cost of energy purchased; ii) It reduces the cost of energy production or delivery; iii) It increases the revenues retained by those engaged in energy production and delivery (energy suppliers). Subsidies are provided through four primary mechanisms: 1) Budgetary transfers of government funds; 2) Government-induced transfers between producers and consumers; 3) Forgone taxes and other government revenues; 4) Under pricing of goods and services. Examples include government control of energy prices that are kept artificially low (referred to as consumer price subsidies hereafter); budgetary transfers to energy suppliers or tax expenditures granted to energy suppliers to keep costs down to benefit consumers, producers, or both; underpricing of goods and services, such as fuels, land, and water used by energy producers; subsidized loans; and shifting of risk burdens, such as the assumption of risks created by energy supply or use through limits on commercial liability. Among the economy wide modeling tools, the main focus of this note is computable general equilibrium (CGE) models. Partial equilibrium models are discussed only briefly The latter models, by carefully mapping the details of energy production technologies including substitution between fuel types and process and efficiency improvements (Bohringer and Rutherford 2008), can generate important insights to shape the design of a reform. However, they tend to have limited or no interaction between the market of interest and the rest of the economy. As a result, they are unable to measure the indirect and dynamic effects that a reform can generate, particularly with respect to energy-consuming sectors, the prices of goods and services that use energy as an intermediate input, and the impact of all of these changes on investment, industrial structure, and household welfare. The rest of the note is organized as follows. It begins with a brief overview of the different types of modeling tools in section two. Existing studies on estimating the effects of energy price subsidy reforms are outlined in annex A. The literature review shows that the bulk of studies use a CGE model for examining the effects of energy subsidy reform. Macrostructural models do this much better and can be used to quickly quantify the likely macroeconomic impacts of a reform, and have the advantage of requiring relatively few data and being easier to work with than CGE models. A guide to using macrostructural models to estimate the short-term effects of energy subsidy reform is presented in section three. The various macrostructural models that are available are included in annex B. Section four presents a guide to using CGE models to estimate the long-term effects of reform. A more detailed discussion of CGE models is included in annex C The feasibility of using any given model will depend heavily on the availability of data, requirements for which are discussed in section five. After briefly touching on empirical studies on energy reform in section six, section seven concludes with some highlights and guidance on the issues to consider when choosing a model to carry out energy price subsidy reform.Publication Multi-scale lidar measurements suggest miombo woodlands contain substantially more carbon than thought(Springer Nature, 2024-07-10)Miombo woodlands are integral to livelihoods across southern Africa, biodiversity in the region, and the global carbon cycle, making accurate and precise monitoring of their state and change essential. Here, we assembled a terrestrial and airborne lidar dataset covering 50 kha of intact and degraded miombo woodlands, and generated aboveground biomass estimates with low uncertainty via direct 3D measurements of forest structure. We found 1.71 ± 0.09 TgC was stored in aboveground biomass across this landscape, between 1.5 and 2.2 times more than the 0.79–1.14 TgC estimated by conventional methods. This difference is in part owing to the systematic underestimation of large trees by allometry. If these results were extrapolated across Africa’s miombo woodlands, their carbon stock would potentially require an upward revision of approximately 3.7 PgC, implying we currently underestimate their carbon sequestration and emissions potential, and disincentivise their protection and restoration.Publication Climate Modeling for Macroeconomic Policy(World Bank, Washington, DC, 2021-09)As the effects of climate change become increasingly evident, the design and implementation of climate-aware policies have assumed a more central role in the macroeconomic policy debate. With this has come an increasing recognition of the importance of introducing climate into the economic policy making tools used by central economic policy making agencies (such as ministries of finance and ministries of planning). This paper integrates climate outcomes into a macro-structural model for Pakistan, the kind of model that is suitable for use on a regular basis by ministry staff. The model includes the standard set of variables and economic logic that are necessary for the kinds of forecasting, economic policy, and budgetary planning analysis typically conducted by central ministries. In addition to standard outputs (unemployment, inflation, gross domestic product growth, and fiscal and current accounts), the model generates climate outcomes (tons of carbon emitted and economic and health damages due to higher temperatures and pollution). These outcomes are generated when specific climate policies such as mitigation are analyzed, but also when other policies are analyzed that might have unanticipated climate impacts. The paper describes the changes made to the World Bank’s standard macro structural model, MFMod, in integrated climate outcomes, climate policies, and the economic impacts of climate on Pakistan’s economy. Notably, carbon-tax scenarios show that a $20 carbon tax can reduce emissions in Pakistan by 36 percent by 2050. Gross domestic product impacts could also be positive, if the revenues from the carbon tax were used to reduce reliance on heavily distorting taxes. The model also quantifies associated co-benefits from reduced local air pollution and better health and productivity outcomes. In the absence of action to restrain climate change, the model suggests that increased temperatures and rain variability could reduce output by as much as 10 percent compared with a scenario where global temperature rises were minimized.Publication Estimating and Calibrating MFMod(World Bank, Washington, DC, 2019-07)This paper summarizes the World Bank's approach to identifying parameters for key equations in its macro structural model for countries where short sample sizes or major structural changes render traditional time-series approaches infeasible or yield unstable estimates. To identify parameters that could be used in such cases, a cointegrating panel approach is followed that yields a common long-run estimate of parameters for key equations (to test the theoretical restrictions imposed in the model) and short-run disequilibrium estimates that vary by country. This approach is preferred to pure calibration or Bayesian estimation, because the functional forms imposed in the panel are consistent with those used in the macro structural model.
Users also downloaded
Showing related downloaded files
Publication Jobs in a Changing Climate: Insights from World Bank Group Country Climate and Development Reports Covering 93 Economies(Washington, DC: World Bank, 2025-11-05)The World Bank Group’s Country Climate and Development Reports (CCDRs) provide a crosscutting look at how countries’ development prospects, and the job opportunities they offer to their people, can be threatened by climate impacts and supported by climate policies. Climate change and policies affect jobs through impacts on productivity, energy and material efficiency, and physical, human, and natural capital. They can also transform employment opportunities, especially through complementary measures that help workers and firms adapt to and benefit from new technologies and production practices. Prepared by the World Bank, the International Finance Corporation (IFC), and the Multilateral Investment Guarantee Agency (MIGA), CCDRs integrate country perspectives, climate science and economic modeling, private sector information, and policy analysis to assess how countries can successfully grow and develop their economies and create jobs despite increasing climate risks and while achieving their climate objectives and commitments. Each CCDR starts from the country’s development priorities, opportunities, and challenges, and is developed in close consultation with governments, businesses, and civil society, ensuring the recommendations reflect national priorities. By combining evidence on adaptation, resilience, and emissions pathways, CCDRs highlight where climate action can reinforce development and job creation, and where targeted policies are needed to manage risks and smooth labor market transitions. Taken together, these elements can help create local jobs, ensure economic transitions are just and inclusive, and equip workers and firms to navigate the disruptions and opportunities of a changing climate and changing technologies.Publication Gabon Country Climate and Development Report(Washington, DC: World Bank, 2025-11-01)Gabon has a unique opportunity to drive inclusive growth, reduce poverty, and build a resilient post-oil economy, with climate action accelerating progress toward these goals. The country’s main development challenge is achieving higher growth and poverty reduction, as stronger growth is needed regardless of projected climate shocks to create jobs, raise living standards, and enable a viable post-oil economy. While pursuing growth-promoting economic reforms, climate action that prioritizes people must remain central to its development pathway. However, climate change risks exacerbating poverty and regional inequalities in a country already facing long-term challenges in expanding economic opportunities and basic public services, especially in rural areas. Climate shifts compound these challenges, making stronger private sector-led growth driven by reforms essential for resilience, diversification, job creation, and poverty reduction, though targeted investments in adaptation will still be required to mitigate climate shocks. Using a whole-of-economy approach, the Gabon Country Climate Development Report (CCDR) estimates that climate change impacts could result in GDP losses of 3.5 to 5.3 percent per year through 2050 compared to a business-as-usual baseline trajectory.Publication Comoros Country Climate and Development Report(Washington, DC: World Bank, 2025-06-18)The Union of the Comoros (The Comoros) has significant vulnerability to climate change-related risks but has considerable opportunities to strengthen preparedness and resilience against these challenges. According to the Notre Dame Global Adaptation Index, the Comoros is the 29th-most vulnerable country to climate change and the 163rd most ready to adapt (out of 191). The Comoros archipelago is exposed to many natural hazards that adversely affect the country’s natural capital, people, and physical infrastructure. In 2014, the economic cost of climate-related disasters was estimated at 5.7 million dollars annually, equivalent to 9.2 percent of Gross Domestic Product (GDP). Between 2018 and 2023, as many as 11 tropical depressions or cyclones impacted the country, with Cyclone Kenneth causing the greatest damage, equivalent to 14 percent of GDP, resulting in total economic growth falling from 3.6 percent in 2018 to 1.9 percent in 2019. More than 345,000 people (40 percent of the population) were affected by the cyclone, with 185,000 people experiencing severe impacts and 12,000 people displaced. However, there is an opportunity for the country to grow more robust and shock-responsive, and to establish pre-positioned funding mechanisms to enhance future crisis response efforts. For the Comoros, adaptation and climate-resilient development are the key climate change focus areas, with the country projected to face 836 million dollars 2050 in additional costs due to climate-related impacts. Current plans to adapt to the impacts of climate change in the Comoros include efforts to improve water management, strengthen coastal protection, and develop climate-smart agriculture practices. Given the country’s reliance on its natural resource base for economic growth and mobility, protection of these resources from climate change will be essential for promoting resilient growth and development. In addition to growing the adaptive capacity of the country’s natural resource sectors, strategic economic diversification will be important to help minimize future climate impacts, and development activities will need to be undertaken in such a way as to attract low-carbon co-benefits. The Union of the Comoros is committed to addressing climate change through its Nationally Determined Contribution (NDC) and national priorities. The country’s NDC (which was revised in 2021 for a ten-year horizon) sets ambitious targets, with a goal of reducing greenhouse gas emissions by 23 percent by 2030. The country also plans to significantly increase the share of renewable energy in its energy portfolio, reaching 33 MW by 2030. This will not only promote low-carbon development but also reduce the country’s dependency on imported oil and coal, which currently make up 95 percent of the energy mix. Additionally, the Comoros has declared its intention to increase CO2 removals by 47 percent by 2030, compared to BAU.Publication Kyrgyz Republic Country Climate and Development Report(Washington, DC: World Bank, 2025-11-03)This Country Climate and Development Report (CCDR) on the Kyrgyz Republic aims to support the country’s development goals amid a changing climate. The CCDR considers two policy scenarios up to 2050: the business-as-usual (BAU) and high-growth scenarios. As it quantifies the likely impacts of climate change on the Kyrgyz economy between now and 2050, the report highlights key government actions to best prepare for and adapt to climate impacts (referred to as “with adaptation” measures), with a particular focus on the time horizon up to 2030. The CCDR also outlines a path to net zero emissions by 2050 (referred to as “with mitigation” measures, “decarbonization,” or, simply, “net zero 2050”), highlighting associated development co-benefits.Publication Tajikistan Country Climate and Development Report(Washington, DC: World Bank, 2025-03-28)The Tajikistan Country Climate and Development Report (CCDR) explores the impact of climate change and global decarbonization on Tajikistan’s development. It identifies key areas to enhance climate resilience and deepen decarbonization and outlines priority recommendations for a successful green transition in Tajikistan, requiring structural reforms, climate-conscious policies, and inclusive strategies for a resilient and sustainable future. Despite economic growth and poverty reduction over the past two decades, Tajikistan's reliance on natural resources and remittances has led to unsustainable development, depleting natural capital and limiting job creation. The government’s green transition plan focuses on renewable energy, promising energy security, economic growth, and regional electricity exports. However, further efforts are needed for a resilient development path, including a complementary reform program to bring significant economic benefits, climate adaptation, and low-carbon development that will benefit Tajikistan and Central Asia's electricity systems. Climate change poses significant risks, threatening water security, agricultural productivity, and infrastructure, potentially reducing GDP per capita by 5-6% by mid-century and pushing 100,000 people into poverty. Additional adaptation measures are crucial, focusing on water management, resilient landscapes, climate-smart agriculture, and disaster risk management. A low-carbon development pathway offers a more resilient and prosperous future, with near net-zero emissions in energy and waste sectors by 2050, boosting economic growth, and job creation and reducing air pollution. Achieving these goals requires substantial investments and institutional reforms to mobilize private capital and attract green foreign investment. Development partners can provide financial assistance, technical expertise, and capacity building.