Notas
| Each file contains the following information: Cert_TwoPeriod.m: MAIN CODE. Calculates and plots equilibrium for baseline model in paper. Plots outcomes of baseline model (Fig.1, Fig.2, Fig.3) and the college case (Fig.C.1). Can also use this to generate figures for consumption floor and general power utility case (changing the elasticity). Assumptions maintained: - parent can't save - certainty over endowments GENERATES: FIG.1, FIG.2, FIG.3, FIG.C.1 in paper Uncert_TwoPeriod.m: Calculates and plots equilibrium adding uncertainty to the two-period baseline model from Cert_TwoPeriod.m. Two assumptions are considered for the support of the shock: i) two states (Fig.5 in paper) ii) continuous support (log-normal, Fig.6 in paper) GENERATES: FIG.5, FIG.6 PlotPhaseParSave.m: Plot 2D phase-diagram like transition arrows for stages, which we show in the JET paper for the robustness exercise with parent savings . Before running this script, run BruteForceParentSave.m with the default settings: GENERATES: FIG.4. BruteForceParentSave.m: Solves more general gift-giving game by brute force: parent can save (or not), two or more periods, can have income shocks for both parent and child. Helper functions: Array2LinInd.m, kronm.m |