Skip to content
Open
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
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.25.5] - 2026-11-24

### Added
- Adds net family transfers between households, set by the new parameter `phi_FT`: support that moves from some households to others, such as working-age children supporting their parents. Each household has its own budget constraint, so before this nothing could move resources between households outside bequests, and in countries where older people live mostly on family support their consumption fell far below what the data show. `phi_FT` is a (T+S) x S x J path (an S x J matrix is also accepted and held constant) giving the transfers received by each age and lifetime income group as a share of GDP, positive for receivers and negative for givers.
- Each period of `phi_FT` must sum to zero, so the transfers net out: they leave aggregate resources and the government budget unchanged. `Specifications` raises an error if a period does not sum to zero or the shape is wrong. The default is zero, which turns them off, so results are unchanged unless a calibration sets it.
- The transfers reach households next to remittances, outside taxes and government transfers, in the steady state and on the time path. Adds `household.get_ft` and `household.add_family_transfers`, and an `ft` output in the steady state and on the time path (also in `model_variables.json`).
- Documents net family transfers in the households chapter (a new section, and the budget constraint) and in the stationarization and government chapters.
- Adds tests that the transfers net to zero in the steady state and in every period of the path, that they are added to remittances only when turned on, and that `Specifications` rejects shares that do not sum to zero.

## [0.25.4] - 2026-11-24

### Added
- `eta` and `eta_RM`, which share out government transfers and remittances across ages and lifetime income groups, can now vary over time, as a (T+S) x S x J path like `omega` and `rho`. Before, each was one S x J matrix used in every year. As the population ages, holding that matrix fixed changes what each person receives: in an aging country the oldest households can end up receiving many times their intended transfer. A path lets a calibration keep each person's transfer on its intended profile in every year.
- An S x J matrix is still accepted and held constant over time, and the older T x S form of `eta_RM` is still accepted, so existing inputs give the same model parameters, bit for bit. A path shorter than T+S is extended with its last period.
- `Specifications` warns when `eta` or `eta_RM` does not sum to one in some period, since households would then receive a different total than the aggregate.
- Adds tests that both parameters accept either form and that an S x J matrix gives the same parameters as before.
- A two-dimensional `eta` or `eta_RM` is converted to the new shape by `update_specifications`; passing one directly to paramtools' `adjust` now raises a validation error.

## [0.25.2] - 2026-11-23

### Added
Expand Down Expand Up @@ -942,6 +960,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Any earlier versions of OG-USA can be found in the [`OG-Core`](https://github.com/PSLmodels/OG-Core) repository [release history](https://github.com/PSLmodels/OG-Core/releases) from [v.0.6.4](https://github.com/PSLmodels/OG-Core/releases/tag/v0.6.4) (Jul. 20, 2021) or earlier.


[0.25.5]: https://github.com/PSLmodels/OG-Core/compare/v0.25.4...v0.25.5
[0.25.4]: https://github.com/PSLmodels/OG-Core/compare/v0.25.3...v0.25.4
[0.25.2]: https://github.com/PSLmodels/OG-Core/compare/v0.25.1...v0.25.2
[0.25.1]: https://github.com/PSLmodels/OG-Core/compare/v0.25.0...v0.25.1
[0.25.0]: https://github.com/PSLmodels/OG-Core/compare/v0.24.6...v0.25.0
Expand Down
12 changes: 10 additions & 2 deletions docs/book/content/intro/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,20 @@ _Out-of-Range Action:_ error

#### `eta_RM`
_Description:_ Matrix that allocates aggregate remittances across households.
_Notes:_ This SxJ matrix gives the fraction of total aggregate remittances going to each age s and ability type j.
_Notes:_ This (T+S)xSxJ array gives the fraction of total aggregate remittances going to each age s and ability type j in each period t; each period should sum to one. An SxJ matrix is also accepted and held constant over time; a path shorter than T+S is extended with its last period.
_Value Type:_ float
_Valid Range:_ min = 0.0 and max = 1.0
_Out-of-Range Action:_ error


#### `phi_FT`
_Description:_ Net transfers between households, such as support from working-age children to their parents, as a share of GDP, received by each age and ability type.
_Notes:_ This (T+S)xSxJ array gives the net family transfers received by all households of age s and ability type j in period t, as a share of GDP: positive for receivers, negative for givers. Each period must sum to zero, so the transfers net out across households and leave aggregate resources and the government budget unchanged. They enter the household budget outside taxes and government transfers. An SxJ matrix is also accepted and held constant over time; a path shorter than T+S is extended with its last period. Zero (the default) turns them off.
_Value Type:_ float
_Valid Range:_ min = -1.0 and max = 1.0
_Out-of-Range Action:_ error


#### `zeta`
_Description:_ Matrix that describes the bequest distribution process.
_Notes:_ This SxJ matrix gives the fraction of total aggregate bequests going to each age s and ability type j.
Expand Down Expand Up @@ -627,7 +635,7 @@ _Out-of-Range Action:_ error

#### `eta`
_Description:_ Matrix that allocated government transfers across households.
_Notes:_ This SxJ matrix gives the fraction of total aggregate transfers going to each age s and ability type j.
_Notes:_ This (T+S)xSxJ array gives the fraction of total aggregate transfers going to each age s and ability type j in each period t; each period should sum to one. An SxJ matrix is also accepted and held constant over time; a path shorter than T+S is extended with its last period.
_Value Type:_ float
_Valid Range:_ min = 0.0 and max = 1.0
_Out-of-Range Action:_ error
Expand Down
4 changes: 2 additions & 2 deletions docs/book/content/theory/government.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Income taxes are modeled through the net tax liability function for each househo
\begin{aligned}
p_t c_{j,s,t} + &\sum_{i=1}^I (1 + \tau^{c}_{i,t})p_{i,t}c_{min,i} + b_{j,s+1,t+1} = \\
&(1 + r_{p,t})b_{j,s,t} + w_t e_{j,s} n_{j,s,t} ... \\
&\qquad +\: bq_{j,s,t} + rm_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad +\: bq_{j,s,t} + rm_{j,s,t} + ft_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad\quad\forall j,t\quad\text{and}\quad E+1\leq s\leq E+S \quad\text{where}\quad b_{j,E+1,t}=0
\end{aligned}
```
Expand Down Expand Up @@ -797,7 +797,7 @@ Note that the budget closure rule (described in Section ref{`SecUnbalGBCcloseRul
\begin{aligned}
p_t c_{j,s,t} + &\sum_{i=1}^I (1 + \tau^{c}_{i,t})p_{i,t}c_{min,i} + b_{j,s+1,t+1} = \\
&(1 + r_{p,t})b_{j,s,t} + w_t e_{j,s} n_{j,s,t} ... \\
&\qquad +\: (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad +\: (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + ft_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad\quad\forall j,t\quad\text{and}\quad E+1\leq s\leq E+S \quad\text{where}\quad b_{j,E+1,t}=0
\end{aligned}
```
Expand Down
25 changes: 19 additions & 6 deletions docs/book/content/theory/households.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ In this section, we describe what is arguably the most important economic agent
\begin{aligned}
p_t c_{j,s,t} + &\sum_{i=1}^I (1 + \tau^{c}_{i,t})p_{i,t}c_{min,i} + b_{j,s+1,t+1} = \\
&(1 + r_{p,t})b_{j,s,t} + w_t e_{j,s} n_{j,s,t} ... \\
&\quad\quad + (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\quad\quad + (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + ft_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\quad\quad\forall j,t\quad\text{and}\quad E+1\leq s\leq E+S \quad\text{where}\quad b_{j,E+1,t}=0
\end{aligned}
```

where $c_{j,s,t}$ is consumption, $b_{j,s+1,t+1}$ is savings for the next period, $r_{p,t}$ is the normalized interest rate (return) on household savings invested in the financial intermediary, $b_{j,s,t}$ is current period wealth (savings from last period), $w_t$ is the normalized wage, and $n_{j,s,t}$ is labor supply. Equations {eq}`eq_rK` and {eq}`eq_portfolio_return` of Chapter {ref}`Chap_FinInt` show how the rate of return from the financial intermediary $r_{p,t}$ might differ from the marginal product of capital $r_t$ and from the interest rate the government pays $r_{gov,t}$. Note that we must add in the cost of minimum consumption $c_{min,i}$ for all $i$ because that amount is subtracted out of composite consumption in {eq}`EqHHCompCons`.

The last six terms on the right-hand-side of the budget constraint {eq}`EqHHBC` have to do with dfferent types of transfers to households: bequests $bq_{j,s,t}$, remittances $rm_{j,s,t}$, government transfers $tr_{j,s,t}$, universal basic income $ubi_{j,s,t}$, public pension benefits $pension_{j,s,t}$, and net taxes $tax_{j,s,t}$. The first four types of transfers to households are detailed in the section below entitled {ref}`SecHHtransfers`.
The last seven terms on the right-hand-side of the budget constraint {eq}`EqHHBC` have to do with dfferent types of transfers to households: bequests $bq_{j,s,t}$, remittances $rm_{j,s,t}$, net family transfers $ft_{j,s,t}$, government transfers $tr_{j,s,t}$, universal basic income $ubi_{j,s,t}$, public pension benefits $pension_{j,s,t}$, and net taxes $tax_{j,s,t}$. The first five types of transfers to households are detailed in the section below entitled {ref}`SecHHtransfers`.

The third term $bq_{j,s,t}$ on the right-hand-side of the budget constraint {eq}`EqHHBC` represents the portion of total bequests $BQ_t$ that go to the age-$s$, income-group-$j$ household. Section {ref}`SecHHbequests` details how total bequests are distributed among the different households. The next term on the right-hand-side of the budget constraint {eq}`EqHHBC` represents remittances received by the household $rm_{j,s,t}$. We describe these remittances in Section {ref}`SecHHremit` below.
The third term $bq_{j,s,t}$ on the right-hand-side of the budget constraint {eq}`EqHHBC` represents the portion of total bequests $BQ_t$ that go to the age-$s$, income-group-$j$ household. Section {ref}`SecHHbequests` details how total bequests are distributed among the different households. The next term on the right-hand-side of the budget constraint {eq}`EqHHBC` represents remittances received by the household $rm_{j,s,t}$. We describe these remittances in Section {ref}`SecHHremit` below. The term after it, $ft_{j,s,t}$, is net family transfers received from other households, described in Section {ref}`SecHHfamily`.

The next term is government transfers $tr_{j,s,t}$ to households of lifetime income group $j$ in age $s$ at time $t$. Section {ref}`SecHHgovtransfers` details how total government transfers to households are distributed among the differenty household types. The term $ubi_{j,s,t}$ the time series of a matrix of universal basic income (UBI) transfers by lifetime income group $j$ and age group $s$ in each period $t$. There is a specification where the time series of this matrix is stationary (growth adjusted) and a specification in which it's stationary value is going to zero in the limit (non-growth-adjusted). The calibration chapter on UBI in the country-specific repository documentation describes the exact way in which this matrix is calibrated from the values of five parameters, household composition data, and OG-Core's demographics. Similar to the transfers term $TR_{t}$, the UBI transfers will not be distortionary.

Expand Down Expand Up @@ -181,7 +181,7 @@ In this section, we describe what is arguably the most important economic agent
(SecHHtransfers)=
## Transfers to household

The household budget constraint {eq}`EqHHBC` includes four terms that represent different types of transfers to households: bequests $bq_{j,s,t}$, remittances $rm_{j,s,t}$, government transfers $tr_{j,s,t}$, and universal basic income $ubi_{j,s,t}$. These four types of household transfers are detailed in the following subsections.
The household budget constraint {eq}`EqHHBC` includes five terms that represent different types of transfers to households: bequests $bq_{j,s,t}$, remittances $rm_{j,s,t}$, net family transfers $ft_{j,s,t}$, government transfers $tr_{j,s,t}$, and universal basic income $ubi_{j,s,t}$. These five types of household transfers are detailed in the following subsections.


(SecHHbequests)=
Expand Down Expand Up @@ -244,7 +244,20 @@ In this section, we describe what is arguably the most important economic agent
rm_{j,s,t} = \eta_{RM,j,s,t}\frac{RM_t}{\lambda_j\omega_{s,t}} \quad\forall \quad j,s,t
```

The distribution object $\eta_{RM,j,s,t}$ is an $S\times J$ matrix in every period $t$ whose elements sum to one in every period. This object governs how total remittances in every period $RM_t$ are distributed as income among household budget constraints.
The distribution object $\eta_{RM,j,s,t}$ is an $S\times J$ matrix in every period $t$ whose elements sum to one in every period. This object governs how total remittances in every period $RM_t$ are distributed as income among household budget constraints. Both $\eta_{RM,j,s,t}$ and the transfer allocation $\eta_{j,s,t}$ below can be entered as a path over the time periods, or as a single $S\times J$ matrix held constant over time.


(SecHHfamily)=
### Net family transfers

In many countries, older people rely on support from their working-age children and other relatives, more than on savings or government programs. Each household in the model has its own budget constraint, so without this term nothing can move resources from one household to another outside bequests. Net family transfers $ft_{j,s,t}$ add that channel. They are a share $\phi_{FT,j,s,t}$ of GDP received by all households of age $s$ in lifetime income group $j$, positive for households that receive support and negative for those that give it.

```{math}
:label: EqHH_IndFamilyTfer
ft_{j,s,t} = \phi_{FT,j,s,t}\frac{Y_t}{\lambda_j\omega_{s,t}} \quad\forall \quad j,s,t \quad\text{where}\quad \sum_{s=E+1}^{E+S}\sum_{j=1}^J\phi_{FT,j,s,t}=0 \quad\forall t
```

Because the shares sum to zero in every period, what the givers pay is exactly what the receivers get. Family transfers therefore leave aggregate resources, market clearing, and the government budget unchanged; they only move resources between households. Like remittances, they are lump sum from the household's point of view, so they do not directly distort its choices. The default $\phi_{FT,j,s,t}=0$ turns them off. Country calibrations set the shares from data on transfers within families by age, such as the National Transfer Accounts.


(SecHHgovtransfers)=
Expand Down Expand Up @@ -299,7 +312,7 @@ In this section, we describe what is arguably the most important economic agent
\begin{aligned}
\text{s.t.}\quad &p_t c_{j,s,t} + \sum_{i=1}^I (1 + \tau^{c}_{i,t})p_{i,t}c_{min,i} + b_{j,s+1,t+1} = \\
&\quad (1 + r_{p,t})b_{j,s,t} + w_t e_{j,s} n_{j,s,t} ...\\
&\qquad +\: (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad +\: (1-\tau^{bq}_t)bq_{j,s,t} + rm_{j,s,t} + ft_{j,s,t} + tr_{j,s,t} + ubi_{j,s,t} + pension_{j,s,t} - tax_{j,s,t} \\
&\qquad\text{and}\quad c_{j,s,t}\geq 0,\: n_{j,s,t} \in[0,\tilde{l}],\:\text{and}\: b_{j,1,t}=0 \quad\forall j, t, \:\text{and}\: E+1\leq s\leq E+S
\end{aligned}
```
Expand Down
10 changes: 9 additions & 1 deletion docs/book/content/theory/stationarization.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The previous chapters derive all the equations necessary to solve for the steady
- $\hat{D}_t\equiv\frac{D_t}{e^{g_y t}\tilde{N}_t}$
- $p_{m,t} \equiv \frac{\tilde{p}_{m,t}}{\tilde{p}_{M,t}}$
* - $\hat{rm}_{j,s,t} \equiv \frac{rm_{j,s,t}}{e^{g_y t}}$
* - $\hat{ft}_{j,s,t} \equiv \frac{ft_{j,s,t}}{e^{g_y t}}$
-
- $\hat{RM}_t \equiv \frac{RM_t}{e^{g_y t}\tilde{N}_t}$
-
Expand Down Expand Up @@ -95,7 +96,7 @@ The usual definition of equilibrium would be allocations and prices such that ho
\begin{aligned}
p_t\hat{c}_{j,s,t} + &\sum_{i=1}^I (1 + \tau^{c}_{i,t})p_{i,t}\hat{c}_{min,i} + e^{g_y}\hat{b}_{j,s+1,t+1} = \\
&(1 + r_{p,t})\hat{b}_{j,s,t} + \hat{w}_t e_{j,s} n_{j,s,t} ... \\
&\qquad +\: (1-\tau^{bq}_t)\hat{bq}_{j,s,t} + \hat{rm}_{j,s,t} + \hat{tr}_{j,s,t} + \hat{ubi}_{j,s,t} + \hat{pension}_{j,s,t} - \hat{tax}_{j,s,t} \\
&\qquad +\: (1-\tau^{bq}_t)\hat{bq}_{j,s,t} + \hat{rm}_{j,s,t} + \hat{ft}_{j,s,t} + \hat{tr}_{j,s,t} + \hat{ubi}_{j,s,t} + \hat{pension}_{j,s,t} - \hat{tax}_{j,s,t} \\
&\quad\forall j,t\quad\text{and}\quad E+1\leq s\leq E+S \quad\text{where}\quad \hat{b}_{j,E+1,t}=0
\end{aligned}
```
Expand Down Expand Up @@ -147,6 +148,13 @@ The usual definition of equilibrium would be allocations and prices such that ho
\hat{rm}_{j,s,t} = \eta_{RM,j,s,t}\frac{\hat{RM}_t}{\lambda_j\hat{\omega}_{s,t}} \quad\forall \quad j,s,t
```

Net family transfers {eq}`EqHH_IndFamilyTfer` are a share of GDP, so their stationarized form follows directly.

```{math}
:label: EqHH_IndFamilyTferStnrz
\hat{ft}_{j,s,t} = \phi_{FT,j,s,t}\frac{\hat{Y}_t}{\lambda_j\hat{\omega}_{s,t}} \quad\forall \quad j,s,t
```


(SecStnrzFirms)=
## Stationarized Firms Equations
Expand Down
7 changes: 6 additions & 1 deletion ogcore/SS.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ def inner_loop(outer_loop_vars, p, client, scattered_p=None):
p_tilde = aggr.get_ptilde(p_i, p.tau_c[-1, :], p.alpha_c)
bq = household.get_bq(BQ, None, p, "SS")
rm = household.get_rm(RM, None, p, "SS")
# net family transfers reach households alongside remittances
rm = household.add_family_transfers(rm, Y, p, "SS")
tr = household.get_tr(TR, None, p, "SS")
ubi = p.ubi_nom_array[-1, :, :] / factor

Expand Down Expand Up @@ -636,6 +638,7 @@ def inner_loop(outer_loop_vars, p, client, scattered_p=None):
new_bq = household.get_bq(new_BQ, None, p, "SS")
new_RM = aggr.get_RM(Y, p, "SS")
new_rm = household.get_rm(new_RM, None, p, "SS")
new_rm = household.add_family_transfers(new_rm, Y, p, "SS")
tr = household.get_tr(TR, None, p, "SS")
theta = theta_in_solve(nssmat, new_w, new_factor, None, p)

Expand Down Expand Up @@ -1055,6 +1058,7 @@ def SS_solver(
bqssmat = household.get_bq(BQss, None, p, "SS")
trssmat = household.get_tr(TR_ss, None, p, "SS")
rmssmat = household.get_rm(RM_ss, None, p, "SS")
ftssmat = household.get_ft(Yss, None, p, "SS")
ubissmat = p.ubi_nom_array[-1, :, :] / factor_ss
theta = pensions.replacement_rate_vals(nssmat, wss, factor_ss, None, p)

Expand Down Expand Up @@ -1194,7 +1198,7 @@ def SS_solver(
bssmat_splus1,
nssmat,
bqssmat,
rmssmat,
household.add_family_transfers(rmssmat, Yss, p, "SS"),
taxss + household.fdc_net_flow(fdc_ss),
np.squeeze(p.e[-1, :, :]).reshape((p.S, p.J)),
p.tau_c[-1, :],
Expand Down Expand Up @@ -1411,6 +1415,7 @@ def SS_solver(
"c_i": c_i_ss_mat,
"bq": bqssmat,
"rm": rmssmat,
"ft": ftssmat,
"tr": trssmat,
"ubi": ubissmat,
"before_tax_income": yss_before_tax_mat,
Expand Down
Loading
Loading