frbus_shock: stacking warning only on monetary levers (trp_aerr periods=4 gives +2.37pp, not +1pp); poil_aerr labelled 'model units'
Mantenedores costumam responder em até 5 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
Start with integration/src/policyengine_macro/core.py, especially FRBUS_VARIABLES and the fallback near line 730; compare the lever unit strings with the period-stacking guidance in us-frb-model/VALIDATION.md. Check the hosted calls cited in the issue against the documented behavior, then update the affected lever descriptions and poil_aerr units. Done means the exposed levers accurately describe stacking and oil-price units; the optional exogenize mode is a broader follow-up.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
What
frbus_shock warns that add-factors stack over periods only for the two monetary levers. Every other lever's units string is silent, and poil_aerr returns "units": "model units". us-frb-model/VALIDATION.md ("Period stacking") says: "Any wrapper exposing a periods argument must document this on every lever it exposes."
Evidence (hosted, us-frb-model@2508a2d, 6 Nov 2026)
| Call | Label returned | What happened |
|---|---|---|
frbus_shock(var="trp_aerr", shock=0.01, periods=4) |
"0.01 = a 1 percentage point rise in the effective personal tax rate" | trp +6.6% → +15.5% of baseline by q4, i.e. +2.37pp, not +1pp. GDP −0.39% vs −0.115% for periods=1 |
frbus_shock(var="egfe_aerr", shock=0.01, periods=4) (per VALIDATION.md) |
"0.01 ~ a 1% higher level" | level +2.90% by q4, not +1% |
frbus_shock(var="poil_aerr", shock=10, periods=4) |
"model units" | the units are $/bbl: +10 gives poil +15.4%. It does not stack (level equation) |
Also: the validated sustained +1%-of-GDP purchases experiment (egfe exogenised, VALIDATION.md Test 4, yr-1 multiplier 0.725) cannot be reached through the hosted tool. The nearest call is a one-quarter impulse.
Fix
In integration/src/policyengine_macro/core.py (FRBUS_VARIABLES, ~l.392–450, fallback at l.730):
- Add the stacking sentence to
egfe_aerr,egse_aerr,trp_aerr,trci_aerr,ecnia_aerr(and any other_aerrlever whose equation carries persistence). Better still, return the realised lever path (variables=[<lever>]by default), so callers see what they got. - Give
poil_aerra real unit ("$/barrel add-error on the oil price level; +10 ≈ +15% at the 2026 LONGBASE price"). - Optional: an
exogenizemode foregfe/trp, so the Test 4 experiment is reachable hosted.
🤖 Generated with Claude Code
- Linguagem predominante
- HTML
- Estrelas
- 3
- Forks
- 0
- Merge médio
- 4d 6h
- PRs com merge (30d)
- 15
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/macro
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
PolicyEngine/macro#225 · 2 comentários ·
Mantenedores costumam responder em até 5 dias
-
question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
PolicyEngine/macro#214 ·
Mantenedores costumam responder em até 5 dias
-
bug documentation
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
PolicyEngine/macro#211 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
PolicyEngine/macro#230 ·
Mantenedores costumam responder em até 5 dias
-
question
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 22/100
PolicyEngine/macro#227 · 4 comentários ·
Mantenedores costumam responder em até 5 dias
Todas as issues de PolicyEngine/macro
Issues semelhantes
-
feature javascript
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 61/100
mattgodbolt/jsbeeb#1833 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DiamondLightSource/eiger-correction#2 · 1 comentário ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathAbertamodule: backend type: bug/reported
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
OpenXiangShan/XiangShan#6938 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetTalvez já em andamento @matejk assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pocoproject/poco#5674 ·
Mantenedores costumam responder em até 2 dias