Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ind-agg PermGroFac constructor function #1489

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Release Date: TBD
- Fixes bug in `AgentPopulation` that caused discretization of distributions to not work. [1275](https://github.com/econ-ark/HARK/pull/1275)
- Adds support for distributions, booleans, and callables as parameters in the `Parameters` class. [1387](https://github.com/econ-ark/HARK/pull/1387)
- Removes a specific way of accounting for ``employment'' in the idiosyncratic-shocks income process. [1473](https://github.com/econ-ark/HARK/pull/1473)
- Add PermGroFac constructor that explicitly combines idiosyncratic and aggregate sources of growth. [1489](https://github.com/econ-ark/HARK/pull/1489)

### 0.15.1

Expand Down
35 changes: 35 additions & 0 deletions HARK/Calibration/Income/IncomeProcesses.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,41 @@ def __call__(self, pLvlNow):
return pLvlNext


def make_PermGroFac_from_ind_and_agg(PermGroFacInd, PermGroFacAgg):
"""
A very simple function that constructs *overall* permanent income growth over
the lifecycle as the sum of idiosyncratic productivity growth PermGroFacInd and
aggregate productivity growth PermGroFacAgg. In most HARK models, PermGroFac
is treated as the overall permanent income growth factor, regardless of source.
In applications in which the user has estimated permanent income growth from
*cross sectional* data, or wants to investigate how a change in aggregate
productivity growth affects behavior or outcomes, this function can be used
as the constructor for PermGroFac.

To use this function, specify idiosyncratic productivity growth in the attribute
PermGroFacInd (or construct it), and put this function as the entry for PermGroFac
in the constructors dictionary of your AgentType subclass instances.

Parameters
----------
PermGroFacInd : [float] or np.array
Lifecycle sequence of idiosyncratic permanent productivity growth factors.
These represent individual-based productivity factors, like experience.
PermGroFacAgg : float
Constant aggregate permanent growth factor, representing (e.g.) TFP.

Returns
-------
PermGroFac : [float] or np.array
Lifecycle sequence of overall permanent productivity growth factors.
Returns same type as PermGroFacInd.
"""
PermGroFac = [PermGroFacAgg * G for G in PermGroFacInd]
if type(PermGroFacInd) is np.array:
PermGroFac = np.array(PermGroFac)
return PermGroFac


###############################################################################

# Define income processes that can be used in the ConsGenIncProcess model
Expand Down
Loading