Skip to content

Commit

Permalink
More example notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegrabowski committed Feb 9, 2025
1 parent 90c280c commit 3c994b3
Show file tree
Hide file tree
Showing 10 changed files with 16,401 additions and 277 deletions.
42 changes: 29 additions & 13 deletions GCN Files/RBC_two_household_additive.gcn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ block STEADY_STATE
{
TFP[ss] = 1.0;
shock_beta_R[ss] = 1.0;
Theta_R[ss] = Theta_R;
Theta_N[ss] = Theta_N;

r[ss] = 1 / beta - (1 - delta);
w[ss] = (1 - alpha) * N[ss] ^ alpha;
Expand All @@ -53,7 +55,7 @@ block RICARDIAN_HOUSEHOLD
{
definitions
{
u_R[] = shock_beta_R[] * (C_R[] ^ (1 - sigma_R) / (1 - sigma_R) - Theta_R * L_R[]);
u_R[] = shock_beta_R[] * (C_R[] ^ (1 - sigma_R) / (1 - sigma_R) - Theta_R[] * L_R[]);
};

controls
Expand All @@ -77,28 +79,30 @@ block RICARDIAN_HOUSEHOLD
identities
{
log(shock_beta_R[]) = rho_beta_R * log(shock_beta_R[-1]) + epsilon_beta_R[];
log(Theta_R[]) = (1 - rho_Theta_R) * log(Theta_R) + rho_Theta_R * log(Theta_R[-1]) + epsilon_Theta_R[];
};

shocks
{
epsilon_beta_R[];
epsilon_beta_R[], epsilon_Theta_R[];
};

calibration
{
beta ~ Beta(alpha=70, beta=4) = 0.99;
delta ~ Beta(alpha=2, beta=42) = 0.02;
sigma_R ~ Gamma(alpha=7, beta=3) = 1.5;
Theta_R ~ Gamma(alpha=7, beta=3) = 1.0;
rho_beta_R ~ Beta(mean=0.95, sd=0.04) = 0.95;
beta ~ maxent(Beta(), lower=0.90, upper=0.99) = 0.99;
delta ~ maxent(Beta(), lower=0.01, upper=0.05) = 0.02;
sigma_R ~ maxent(Gamma(), lower=1.1, upper=3.0) = 1.5;
Theta_R ~ maxent(Gamma(), lower=0.1, upper=5.0) = 1.0;
rho_beta_R ~ maxent(Beta(), lower=0.5, upper=0.99) = 0.95;
rho_Theta_R ~ maxent(Beta(), lower=0.5, upper=0.99) = 0.95;
};
};

block NON_RICARDIAN_HOUSEHOLD
{
definitions
{
u_NR[] = C_NR[] ^ (1 - sigma_N) / (1 - sigma_N) - Theta_N * L_NR[];
u_NR[] = C_NR[] ^ (1 - sigma_N) / (1 - sigma_N) - Theta_N[] * L_NR[];
};

controls
Expand All @@ -116,10 +120,22 @@ block NON_RICARDIAN_HOUSEHOLD
C_NR[] = w[] * L_NR[]: lambda_NR[];
};

identities
{
log(Theta_N[]) = (1 - rho_Theta_N) * log(Theta_N) + rho_Theta_N * log(Theta_N[-1]) + epsilon_Theta_N[];
};

shocks
{
epsilon_Theta_N[];
};

calibration
{
Theta_N ~ Gamma(alpha=7, beta=3) = 1.0;
sigma_N ~ Gamma(alpha=7, beta=3) = 1.5;
Theta_N ~ maxent(Gamma(), lower=0.1, upper=5.0) = 1.0;
sigma_N ~ maxent(Gamma(), lower=1.1, upper=3.0) = 1.5;

rho_Theta_N ~ maxent(Beta(), lower=0.5, upper=0.99) = 0.95;
};
};

Expand Down Expand Up @@ -157,8 +173,8 @@ block FIRM

calibration
{
alpha ~ Beta(alpha=2, beta=5) = 0.35;
rho_TFP ~ Beta(mean=0.95, sd=0.04) = 0.95;
alpha ~ maxent(Beta(), lower=0.3, upper=0.6) = 0.35;
rho_TFP ~ maxent(Beta(), lower=0.8, upper=0.99) = 0.95;
};
};

Expand All @@ -173,6 +189,6 @@ block EQULIBRIUM

calibration
{
omega ~ Beta(alpha=2, beta=2) = 0.5;
omega ~ maxent(Beta(), lower=0.6, upper=0.99) = 0.66;
};
};
1,251 changes: 987 additions & 264 deletions examples/sims_2024_nk.ipynb

Large diffs are not rendered by default.

2,349 changes: 2,349 additions & 0 deletions examples/sims_2024_nk_complete_more_shocks.ipynb

Large diffs are not rendered by default.

2,495 changes: 2,495 additions & 0 deletions examples/sims_2024_nk_complete_taxes.ipynb

Large diffs are not rendered by default.

1,621 changes: 1,621 additions & 0 deletions examples/sims_2024_nk_sticky_wages.ipynb

Large diffs are not rendered by default.

1,692 changes: 1,692 additions & 0 deletions examples/sims_2024_nk_taylor_capital.ipynb

Large diffs are not rendered by default.

2,238 changes: 2,238 additions & 0 deletions examples/sims_2024_nk_taylor_rule.ipynb

Large diffs are not rendered by default.

1,672 changes: 1,672 additions & 0 deletions examples/sims_2024_nk_taylor_rule_fully_linear.ipynb

Large diffs are not rendered by default.

1,412 changes: 1,412 additions & 0 deletions examples/sims_2024_nk_taylor_rule_linearized.ipynb

Large diffs are not rendered by default.

1,906 changes: 1,906 additions & 0 deletions examples/sims_2024_nk_taylor_stick_wage_capital.ipynb

Large diffs are not rendered by default.

0 comments on commit 3c994b3

Please sign in to comment.