# basso42/dsge-argentina-unemp architecture

> Architecture diagram of the GitHub repository basso42/dsge-argentina-unemp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/basso42/dsge-argentina-unemp
- Repository: https://github.com/basso42/dsge-argentina-unemp

## Overview

##### Project type and purpose
- This is an academic research pipeline for applied macroeconomics, not a typical web or microservice application. Its goal is to study a DSGE model’s response to tight monetary policy in Argentina.
- Key indicators:
- README.md describes a Dynare‐based DSGE model and data sources (DBNomics, World Bank).
- File tree contains data ingestion scripts, model (.mod) files, and result outputs.

##### File structure
- Top‐level files:
- README.md, LICENSE, .gitignore – project metadata
- data/ – stored raw or preprocessed time‐series
- functions/ – MATLAB/Octave scripts to call APIs and prepare data
- model/ – Dynare .mod files defining the DSGE model
- results/ – output figures (EPS)
- documentation/ – PDF write-up of methodology and findings
- No traditional “frontend/backend” split; instead, we have a sequential data‐model‐results flow.

##### README for additional insights
- Confirms use of Dynare for model estimation and DBNomics/World Bank APIs for data retrieval.

##### Final remarks
- Be very detailed: include each .m function or group them under “Data Ingestion.”
- Essential pieces (APIs, scripts, model engine, outputs).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% External Data Sources
    subgraph "External Data Sources"
        direction TB
        DBN["DBNomics API"]:::external
        WB["World Bank API"]:::external
    end

    %% Data Ingestion Layer
    subgraph "Data Ingestion Layer"
        direction TB
        CDB["call_dbnomics.m"]:::code
        CWB["call_worldbank.m"]:::code
        DAG["data_argentina.m"]:::code
    end

    %% Data Storage
    subgraph "Data Storage"
        direction TB
        DATA["data/"]:::datastore
        DREADME["data/ReadMe.md"]:::datastore
    end

    %% Modeling Engine
    subgraph "Modeling Engine (Dynare)"
        direction TB
        M1["unemp_argentina_baseline.mod"]:::code
        M2["unemp_argentina_estim_all.mod"]:::code
    end

    %% Output Generator
    subgraph "Output Generator"
        direction TB
        FIG["data_series_fig.eps"]:::output
    end

    %% Documentation
    subgraph "Documentation"
        direction TB
        DOC["unemployment_vermandel.pdf"]:::doc
    end

    %% Project Metadata
    subgraph "Project Metadata"
        direction TB
        RMD["README.md"]:::datastore
        LIC["LICENSE"]:::datastore
        GIT[".gitignore"]:::datastore
    end

    %% Data Flows
    DBN -->|fetch data| CDB
    WB -->|fetch data| CWB
    CDB -->|store series| DATA
    CWB -->|store series| DATA
    DAG -->|prepare Argentina| DATA
    DATA -->|read input| M1
    DATA -->|read input| M2
    M1 -->|run Dynare| FIG
    M2 -->|run Dynare| FIG
    FIG -->|include in| DOC
    DATA -->|reference| DOC

    %% Click Events
    click CDB "https://github.com/basso42/dsge-argentina-unemp/blob/main/functions/call_dbnomics.m"
    click CWB "https://github.com/basso42/dsge-argentina-unemp/blob/main/functions/call_worldbank.m"
    click DAG "https://github.com/basso42/dsge-argentina-unemp/blob/main/functions/data_argentina.m"
    click DATA "https://github.com/basso42/dsge-argentina-unemp/tree/main/data/"
    click DREADME "https://github.com/basso42/dsge-argentina-unemp/blob/main/data/ReadMe.md"
    click M1 "https://github.com/basso42/dsge-argentina-unemp/blob/main/model/unemp_argentina_baseline.mod"
    click M2 "https://github.com/basso42/dsge-argentina-unemp/blob/main/model/unemp_argentina_estim_all.mod"
    click FIG "https://github.com/basso42/dsge-argentina-unemp/blob/main/results/data_series_fig.eps"
    click DOC "https://github.com/basso42/dsge-argentina-unemp/blob/main/documentation/unemployment_vermandel.pdf"
    click RMD "https://github.com/basso42/dsge-argentina-unemp/blob/main/README.md"
    click LIC "https://github.com/basso42/dsge-argentina-unemp/tree/main/LICENSE"
    click GIT "https://github.com/basso42/dsge-argentina-unemp/blob/main/.gitignore"

    %% Styles
    classDef external fill:#ADD8E6,stroke:#000,color:#000
    classDef code fill:#98FB98,stroke:#000,color:#000
    classDef datastore fill:#FFFACD,stroke:#000,color:#000
    classDef output fill:#FFDAB9,stroke:#000,color:#000
    classDef doc fill:#FFA500,stroke:#000,color:#000
```
