IDEAS home Printed from

Matlab code for Public saving and policy coordination in aging economies


  • Martin Floden

    (Stockholm School of Economics)


The matlab code solving the model is available in (3.4 Mb). The important files and directories in this zip file are: main.m (This is the main matlab file. It will be clear which files are called by main), csolve.m (An equation solver due to Chris Sims), \popdata (A directory with population data), \popdata\generate_pop.m (A program that reads the raw population data from the asc files and saves relevant data (including some country specific policy variables) in countryValues.mat), \results (A library with result files. If the result files are available, main.m will use the relevant results as its initial guess. The code updates these result files when it finds new solutions.) table[X].m and figure[X].m (Code that generate tables and figures used in the paper).

Suggested Citation

  • Martin Floden, 2002. "Matlab code for Public saving and policy coordination in aging economies," QM&RBC Codes 56, Quantitative Macroeconomics & Real Business Cycles.
  • Handle: RePEc:dge:qmrbcd:56

    Download full text from publisher

    File URL:
    File Function: program code
    Download Restriction: none

    Other versions of this item:

    More about this item

    JEL classification:

    • E62 - Macroeconomics and Monetary Economics - - Macroeconomic Policy, Macroeconomic Aspects of Public Finance, and General Outlook - - - Fiscal Policy
    • F21 - International Economics - - International Factor Movements and International Business - - - International Investment; Long-Term Capital Movements
    • H21 - Public Economics - - Taxation, Subsidies, and Revenue - - - Efficiency; Optimal Taxation
    • H60 - Public Economics - - National Budget, Deficit, and Debt - - - General
    • J18 - Labor and Demographic Economics - - Demographic Economics - - - Public Policy


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:dge:qmrbcd:56. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christian Zimmermann). General contact details of provider: .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.