Skip to content

Commit

Permalink
Adding utility functions to some latex models
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWC committed Aug 21, 2024
1 parent 0f9dafa commit 9b23247
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2799,6 +2799,7 @@ class KinkedRconsumerType(IndShockConsumerType):
\Rfree_{boro} &> \Rfree_{save}, \\
(\psi_{t+1},\theta_{t+1}) &\sim F_{t+1}, \\
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.
u(c) &= \frac{c^{1-\CRRA}}{1-\CRRA} \\
\end{align*}
Expand Down
2 changes: 1 addition & 1 deletion HARK/ConsumptionSaving/ConsLaborModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class LaborIntMargConsumerType(IndShockConsumerType):
r"""
A class representing agents who make a decision each period about how much
to consume vs save and how much labor to supply (as a fraction of their time).
They get CRRA utility from a composite good x_t = c_t*z_t^alpha, and discount
They get CRRA utility from a composite good :math:`x_t = c_t*z_t^alpha`, and discount
future utility flows at a constant factor.
.. math::
Expand Down
3 changes: 2 additions & 1 deletion HARK/ConsumptionSaving/ConsPortfolioModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ class PortfolioConsumerType(RiskyAssetConsumerType):
S_t & \text{if } p_t \geq \wp,
\end{cases}\\
(\psi_{t+1},\theta_{t+1},\phi_{t+1},p_t) &\sim F_{t+1}, \\
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.\\
u(c) &= \frac{c^{1-\CRRA}}{1-\CRRA} \\
\end{align*}
Expand Down
1 change: 1 addition & 0 deletions HARK/ConsumptionSaving/ConsPrefShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ class KinkyPrefConsumerType(PrefShockConsumerType, KinkedRconsumerType):
\Rfree_{boro} &> \Rfree_{save}, \\
(\psi_{t+1},\theta_{t+1},\eta_{t+1}) &\sim F_{t+1}, \\
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.
u(c) &= \frac{c^{1-\CRRA}}{1-\CRRA} \\
\end{align*}
Expand Down
2 changes: 2 additions & 0 deletions HARK/ConsumptionSaving/ConsRiskyAssetModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class IndShockRiskyAssetConsumerType(IndShockConsumerType):
\mathsf{R}_{t+1} &=S_t\phi_{t+1}\mathbf{R}_{t+1}+ (1-S_t)\mathsf{R}_{t+1}, \\
(\psi_{t+1},\theta_{t+1},\phi_{t+1}) &\sim F_{t+1}, \\
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.
u(c) &= \frac{c^{1-\CRRA}}{1-\CRRA} \\
\end{align*}
Expand Down Expand Up @@ -660,6 +661,7 @@ class FixedPortfolioShareRiskyAssetConsumerType(IndShockRiskyAssetConsumerType):
\mathsf{R}_{t+1} &=S_t\phi_{t+1}\mathbf{R}_{t+1}+ (1-S_t)\mathsf{R}_{t+1}, \\
(\psi_{t+1},\theta_{t+1},\phi_{t+1}) &\sim F_{t+1}, \\
\mathbb{E}[\psi]=\mathbb{E}[\theta] &= 1.
u(c) &= \frac{c^{1-\CRRA}}{1-\CRRA} \\
\end{align*}
Expand Down

0 comments on commit 9b23247

Please sign in to comment.