Codes

  • How to Build and Solve Continuous-time Heterogeneous Agents Models in Asset Pricing? The Martingale Approach and the Finite Difference Method (2024)

    • MainCode: It solves the PDE of stock price for a two-agent model with risk-aversion heterogeneity for RRA_agent1 = 2*RRA_agent2. It implements the Finite Difference method with implicit and upwind schemes.

    • PolicyFunctions: It uses the output of Maincode to calculate policy functions.

    • SensitivityFunction: A function that solves the PDE of stock price and obtains policy functions. This function depends on model parameters. 

    • SensitivityAnalysis: It uses SensitivityFunction to obtain policy functions when parameters of the endowment process and the relative risk aversion of agents change.

    • AlternativeCalibration: It uses SensitivityFunction to solve the PDE of stock price and obtain policy functions for three different parameter calibrations.
    • RRArange: A function that calculates the range of the RRA of each agent and the maximum value of the RRA of the more risk-averse agent when RRA_agent1 = 2*RRA_agent2.

    • NumericalExpectation: A function that approximates the expectation presented in the wealth of the more risk-averse agent using Gaussian quadrature.

    • PDEwithoutBoundaries: It solves the PDE of stock price without considering boundary conditions.

 

  • A DSGE Model with Government-owned Banks (2024)
    • Matlab code to simulate a DSGE model with government banks. Parameter sensitivity is analyzed:Code
© 2024 Cleveland State University | 2121 Euclid Avenue, Cleveland, OH 44115-2214 | 216.687.2000
Cleveland State University is an equal opportunity educator and employer.