GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ststst-10/rbc-procedure: A simple procedure to calibrate, solve, simulate and evaluate a RBC baseline model on Matlab.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
CNP16OV.xlsx
CNP16OV.xlsx
 
 
FPI.xlsx
FPI.xlsx
 
 
GDP.xlsx
GDP.xlsx
 
 
GDPDEF.xlsx
GDPDEF.xlsx
 
 
HOANBS.xlsx
HOANBS.xlsx
 
 
PCDG.xlsx
PCDG.xlsx
 
 
PCESV.xlsx
PCESV.xlsx
 
 
PCND.xlsx
PCND.xlsx
 
 
RBC.mod
RBC.mod
 
 
RBC_procedure.mlx
RBC_procedure.mlx
 
 
README.md
README.md
 
 
quarterly_tfp.xlsx
quarterly_tfp.xlsx
 
 
x_count_quarters.m
x_count_quarters.m
 
 
x_extract_tfp_quarterly.m
x_extract_tfp_quarterly.m
 
 
x_write_latex_table.m
x_write_latex_table.m
 
 

Repository files navigation

Here is a Matlab/Dynare package to create, calibrate, solve and simulate a baseline Real Business Cycle model (similar to the one used in Hansen & Wright, 1992). The package contains two main files, being RBC.mod and RBC_procedure.mlx, and all the neceesary functions and datasets which are necessary to run them.

Requirements:

All the files have been created and run on Matlab R2025b with Dynare version 6.5, on Windows 11.
Matlab must be installed (instructions at https://it.mathworks.com/products/matlab.html). Matlab online should be fine.
Dynare must be installed (instructions at https://www.dynare.org/).
Installation of other specific Matlab packages may be required (e.g. Matlab econometrics toolbox).

The datasets provided have been downloaded from FRED on Ferbuary 2026. In case one wants to download more recent versions of the datasets, there should be no problem: datasets from Fred should be downloaded as .xlsx excel files, and the name of the file should follow the format, "ID.xlsx", with ID being the ID of the dataset (e.g. PCND for Personal Consumption Expenditures: Nondurable Goods). They usually are provided by FRED directly in that format.

Please note that when downloading a new version of Population Level (CNP16OV), one must remember to directly adjust the series to quartery average-aggregated frequency directly on FRED.

For reference, the datasets are:

  • Population Level (CNP16OV) {https://fred.stlouisfed.org/series/CNP16OV}
  • Gross Domestic Product (GDP) {https://fred.stlouisfed.org/series/GDP}
  • Gross Domestic Product: Implicit Price Deflator (GDPDEF) {https://fred.stlouisfed.org/series/GDPDEF}
  • Personal Consumption Expenditures: Durable Goods (PCDG) {https://fred.stlouisfed.org/series/PCDG}
  • Personal Consumption Expenditures: Nondurable Goods (PCND) {https://fred.stlouisfed.org/series/PCND}
  • Personal Consumption Expenditures: Services (PCESV) {https://fred.stlouisfed.org/series/PCESV}
  • Nonfarm Business Sector: Hours Worked for All Workers (HOANBS) {https://fred.stlouisfed.org/series/HOANBS}
  • Total Factor Productivity (DTFP) and Total Factor Productivity Utilization Adjusted (DTFP_UTIL) {https://www.frbsf.org/research-and-insights/data-and-indicators/total-factor-productivity-tfp/}

Replication:

All material in this repository should be downloaded and put into a folder.
The folder should be initialised as the current directory in Matlab (Set path > Add folder > Add folder to path).

The full procedure is performed by running only one file: RBC_procedure.mlx (the file will then call internally, the other file, RBC.mod).

The output will be displayed both inside the file (under the code blocks) and as external products:

  • 4 .tex tables, recognisable by the prefix "y_"
  • 4 .png figures, recognisable by prefix "z_"
  • Auxiliary files: RBC.log and the folders RBC and RBC+, which are necessary outputs for Dynare functioning.

About

A simple procedure to calibrate, solve, simulate and evaluate a RBC baseline model on Matlab.

Topics

dynaremacroeconomic-modelingmatlabrbc-model

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.