-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate-comparison.Rmd
448 lines (281 loc) · 6.18 KB
/
update-comparison.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
---
title: 'Fiscal Impact Update'
subtitle: 'Q1 2022 First Revision'
author: ' Manuel Alcala Kovalski'
date: '`r glue::glue(format(Sys.Date(), "%A, %B %d %Y")," at ", format(strptime(format(Sys.time(), "%H:%M:%S", tz = "America/New_York"), "%H:%M:%S"), "%I:%M %p"))`'
tz: 'America/New_York'
header-includes:
- \usepackage[default]{sourcesanspro}
- \usepackage[T1]{fontenc}
mainfont: SourceSansPro
output:
html_document:
toc: true # table of content true
toc_float: true
toc_depth: 2
number_sections: false
theme: united
highlight: zenburn
hig.retina: 3
self_contained: yes
css: [style.css]
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
echo = FALSE,
fig.align = 'center',
warning = FALSE,
message = FALSE,
cache = FALSE,
results='hide',
fig.keep='all'
)
```
```{r}
librarian::shelf(ggplot2, gt, readr)
plots <- read_rds('data/plots')
```
Testing another change again
```{r fiscal_impact}
plots$fiscal_impact %>% print()
```
```{r, include=TRUE, results = 'show'}
revisions_tbl
summary_tbl
```
# NIPA Consistent Purchases {.tabset .tabset-pills}
## Contributions
```{r nipa_purchases}
plots$federal_purchases_contribution
plots$state_purchases_contribution
```
## Real Levels
```{r nipa_purchases_rlevels}
plots$federal_purchases_real
plots$state_purchases_real
```
## Nominal Levels
```{r nipa_purchases_levels}
plots$federal_purchases
plots$state_purchases
```
# Grants {.tabset .tabset-pills}
## Contributions
```{r grants}
plots$consumption_grants_contribution
plots$investment_grants_contribution
```
## Real Levels
```{r grants_rlevels}
plots$consumption_grants_real
plots$investment_grants_real
```
## Nominal Levels
```{r grants_levels}
plots$consumption_grants
plots$investment_grants
```
# FIM Consistent Purchases
## Contributions
```{r fim_purchases}
plots$federal_contribution
plots$state_contribution
```
# Taxes
## Corporate taxes {.tabset .tabset-pills}
### Contributions
```{r corp_contribution}
plots$federal_corporate_taxes_contribution
plots$state_corporate_taxes_contribution
```
### Real Levels
```{r corp_rlvl}
plots$federal_corporate_taxes_real
plots$state_corporate_taxes_real
```
### Nominal Levels
```{r corp_lvl}
plots$federal_corporate_taxes
plots$state_corporate_taxes
```
## Non-corporate taxes {.tabset .tabset-pills}
### Contributions
```{r noncorp_cont}
plots$federal_non_corporate_taxes_contribution
plots$state_non_corporate_taxes_contribution
```
### Real Levels
```{r noncorp_rlvl}
plots$federal_non_corporate_taxes_real
plots$state_non_corporate_taxes_real
```
### Nominal Levels
```{r noncorp_lvl}
plots$federal_non_corporate_taxes
plots$state_non_corporate_taxes
```
# Transfers
## Total
### Contributions
```{r transfers}
plots$transfers_contribution
plots$federal_transfers_contribution
plots$state_transfers_contribution
```
## Health Outlays {.tabset .tabset-pills}
### Contributions
```{r health}
plots$federal_health_outlays_contribution
plots$state_health_outlays_contribution
```
### Real Levels
```{r health_rlvl}
plots$federal_health_outlays_real
plots$state_health_outlays_real
```
### Nominal Levels
```{r health_lvl}
plots$federal_health_outlays
plots$state_health_outlays
```
### Real Components
```{r health_rcomp}
plots$medicaid_real
plots$medicaid_grants_real
plots$medicare_real
```
### Nominal Components
```{r health_comp}
plots$medicaid
plots$medicaid_grants
plots$medicare
```
## Subsidies (non-ARP) {.tabset .tabset-pills}
### Contributions
```{r subsidies}
plots$subsidies_contribution
```
### Real Levels
```{r subsidies_rlvl}
plots$subsidies_real
```
### Nominal Levels
```{r subsidies_lvl}
plots$subsidies
```
## Subsidies (ARP) {.tabset .tabset-pills}
ARP PPP and Provider Relief Fund
### Contribution
```{r subsidies-arp-cont}
plots$federal_aid_to_small_businesses_arp_contribution
```
### Real Levels
```{r subsidies-arp-rlevel}
plots$federal_aid_to_small_businesses_arp_real
```
### Nominal Levels
```{r subsidies-arp-level}
plots$federal_aid_to_small_businesses_arp
```
## Unemployment Insurance {.tabset .tabset-pills}
### Contributions
```{r ui_cont}
plots$federal_ui_contribution
plots$state_ui_contribution
```
### Real Levels
```{r ui_rlvl}
plots$federal_ui_real
plots$state_ui_real
```
### Nominal Levels
```{r ui_lvl}
plots$federal_ui
plots$state_ui
```
## Other aid to vulnerable households {.tabset .tabset-pills}
Premium Tax Credits, Ratepayer protection, Assistance for older Americans, COBRA, Emergency Assistance
### Contribution
```{r vulnerable}
plots$federal_other_vulnerable_arp_contribution
```
### Real Level
```{r vulnerable_rlvl}
plots$federal_other_vulnerable_arp_real
```
### Nominal Level
```{r vulnerable_lvl}
plots$federal_other_vulnerable_arp
```
## Rebate Checks (1st and 2nd round){.tabset .tabset-pills}
### Contribution
```{r rebate_cont}
plots$rebate_checks_contribution
```
### Real Level
```{r rebate_rlvl}
plots$rebate_checks_real
```
### Nominal Level
```{r rebate_lvl}
plots$rebate_checks
```
## Rebate Checks (ARP) {.tabset .tabset-pills}
### Contribution
```{r rebate_arp_cont}
plots$rebate_checks_arp_contribution
```
### Real Level
```{r rebate_arp_rlvl}
plots$rebate_checks_arp_real
```
### Nominal Level
```{r rebate_arp_lvl}
plots$rebate_checks_arp
```
## Direct aid to households {.tabset .tabset-pills}
Includes Child tax credit, EITC, Childcare for workers, Dependent care for families
### Contribution
```{r aid_cont}
plots$federal_other_direct_aid_arp_contribution
```
### Real Level
```{r aid_rlvl}
plots$federal_other_direct_aid_arp_real
```
### Nominal Level
```{r aid_lvl}
plots$federal_other_direct_aid_arp
```
## Social Benefits Remainder {.tabset .tabset-pills}
### Contribution
```{r soc_cont}
plots$federal_social_benefits_contribution
plots$state_social_benefits_contribution
```
### Real Level
```{r soc_rlvl}
plots$federal_social_benefits_real
plots$state_social_benefits_real
```
### Nominal Level
```{r soc_lvl}
plots$federal_social_benefits
plots$state_social_benefits
```
# Deflators {.tabset .tabset-pills}
## Delta
```{r}
diff_plot
```
## Current
```{r}
cur_plot
```
## Previous
```{r}
prev_plot
```
<br>