Skip to content

Commit

Permalink
Merge pull request #899 from econ-ark/GIC-Balanced-Growth
Browse files Browse the repository at this point in the history
Add calculation of individual steady state as mStE and individual target as mTrg to ConsIndShockModel
  • Loading branch information
sbenthall authored Feb 27, 2021
2 parents 1babcb9 + a0a19ac commit 449f40f
Show file tree
Hide file tree
Showing 15 changed files with 466 additions and 283 deletions.
Binary file modified Documentation/NARK/NARK.pdf
Binary file not shown.
16 changes: 10 additions & 6 deletions Documentation/NARK/NARK.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

\title{Suggested Variable Naming Conventions \\ in the Econ-ARK Toolkit}

% \forcedate{2021-02-25} % Updates for HARK 1.0 release
% \forcedate{2020-02-26} % Add sav, modl; other tweaks
% \forcedate{2020-06-29} % Update date; shorten ALevBF; add
% \forcedate{2020-06-30} % NARK: Minor tweaks
Expand All @@ -26,7 +27,7 @@


\begin{abstract}
Sharing of code is easier when different contributors use similar names for similar objects. While we will not enforce the
Sharing code is easier when different contributors use similar names for similar objects. While we will not enforce the
recommendations below, contributors can make their code more attractive to others
by using names consistent with our guidelines.
\end{abstract}
Expand Down Expand Up @@ -262,12 +263,12 @@ \section{Operators}

\begin{table}[ht]
\centering
\begin{tabular}{|>{\ttfamily}rcll|}
\begin{tabular}{|>{\ttfamily}rccll|}
\hline
Name & \LaTeX & Description & Illustration
Name & \LaTeX & Code & Description & Illustration
\\ \hline
\verb|\Ex| & $\Ex$ & The expectation as of date $t$ & $\Ex_{t}[\uFunc^{\prime}(\cRat_{t+1})]$
\\ \verb|\PDV| & $\PDV$ & Present Discounted Value & $\PDV_{t}^{T}(y)$ is human wealth
\verb|\Ex| & $\Ex$ & \texttt{Ex\_} & The expectation as of date $t$ & $\Ex_{t}[\uFunc^{\prime}(\cRat_{t+1})]$
\\ \verb|\PDV| & $\PDV$ & \texttt{PDV\_} & Present Discounted Value & $\PDV_{t}^{T}(y)$ is human wealth
\\ \hline
\end{tabular}
\caption{Operators}
Expand All @@ -280,8 +281,10 @@ \section{Operators}
\section{Modifiers}
\begin{table}[ht]
\centering
\begin{tabular}{|>{\ttfamily}ccl|}
\begin{tabular}{|>{\ttfamily}lcl|}
\hline
\textit{[object]}\texttt{P} & - & ``Prime'' means derivative, e.g.\ \texttt{vPP} is the second derivative of value: $\vFunc^{\prime\prime}$
\\ \hline
\textit{[object]}\texttt{Agg} & - & Value of something at the aggregate level (as opposed to \texttt{Ind})
\\ \textit{[object]}\texttt{Ind} & - & Value of something at the level of an individual (as opposed to \texttt{Agg})
\\ \textit{[object]}\texttt{Lvl} & - & Level
Expand All @@ -293,6 +296,7 @@ \section{Modifiers}
\\ \textit{[object]}\texttt{Cnt} & - & Continuous-time value
\\ \textit{[object]}\texttt{Dsc} & - & Discrete-time value
\\ \textit{[object]}\texttt{Shk} & - & Shock
\\ \textit{[object]}\texttt{StE} & - & Steady-state Equilibrium value of a variable
\\ \textit{[object]}\texttt{Trg} & - & The `target' value of a variable
\\ \textit{[object]}\texttt{Rte} & - & A `rate' variable like the discount rate $\discRte$
\\ \textit{[object]}\texttt{Fac} & - & A factor variable like the discount factor $\DiscFac$
Expand Down
4 changes: 2 additions & 2 deletions HARK/ConsumptionSaving/ConsGenIncProcessModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def makeEndOfPrdvFunc(self, EndOfPrdvP):
)
self.EndOfPrdvFunc = ValueFuncCRRA(EndOfPrdvNvrsFunc, self.CRRA)

def getPointsForInterpolation(self, EndOfPrdvP, aLvlNow):
def get_points_for_interpolation(self, EndOfPrdvP, aLvlNow):
"""
Finds endogenous interpolation points (c,m) for the consumption function.
Expand Down Expand Up @@ -651,7 +651,7 @@ def makeBasicSolution(self, EndOfPrdvP, aLvl, pLvl, interpolator):
The solution to this period's consumption-saving problem, with a
consumption function, marginal value function, and minimum m.
"""
cLvl, mLvl = self.getPointsForInterpolation(EndOfPrdvP, aLvl)
cLvl, mLvl = self.get_points_for_interpolation(EndOfPrdvP, aLvl)
pLvl_temp = np.concatenate(
(np.reshape(self.pLvlGrid, (self.pLvlGrid.size, 1)), pLvl), axis=-1
)
Expand Down
Loading

0 comments on commit 449f40f

Please sign in to comment.