-
Notifications
You must be signed in to change notification settings - Fork 1
/
FedMoneyReceived.qmd
1751 lines (1311 loc) · 78.8 KB
/
FedMoneyReceived.qmd
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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Federal COVID Money Received {#sec-covid-federal-funds}
```{r setup}
#| warning: false
#| message: false
#| echo: false
knitr::opts_chunk$set(warning=FALSE, message = FALSE)
library(tidyverse)
library(haven)
#install.packages("ggsankey")
#install.packages("ggalluvial")
library(lubridate)
library(smooth)
library(forecast)
library(scales)
library(ggplot2)
library(readxl)
library(tidyverse)
library(data.table)
library(quantmod)
library(geofacet)
library(fredr)
library(sf)
library(usmap)
library(janitor)
library(RColorBrewer)
#library(ggsankey)
library(ggalluvial)
library(readxl)
comma <- function(x) format(x, digits = 2, big.mark = ",")
options(scipen = 999)
```
Dropping revenue source "Federal Stimulus Package" from the IOC revenue data is one way to start estimating how revenue will look after the COVID relief ends. The graphs below show Illinois revenue with and without Federal Stimulus Package revenue. It is important to note that only the \$8.127 ARPA State CURE and \$3.519 CARES CRF/State CURE revenue were labeled as "Federal Stimulus Package" in the IOC revenue data. There was still an additional \$12 billion dollars in other federal revenue that went to the state in FY22 compared to FY19. When trying to understand the states finances and the yearly fiscal gap, we also need to understand when and where the funds were considered revenue in the IOC data and consider the fiscal year that the funds were spent. Finally, allocations or expenditures may be grouped and labeled differently by the State compared to the Fiscal Futures project categorization. Some items that the federal relief funds are spent on are not included in Fiscal Gap calculations (e.g. the Unemployment Insurance Trust Fund repayments). The biggest challenge when determining the Fiscal Gap for Illinois centers around the timing of revenue and expenditures occurring in different fiscal years during the COVID response.
![State CURE expenditures and allocations in the larger context of COVID-related federal revenue.](images/bothgraphs.png){#fig-revandCUREexp}
```{r}
rev_temp <- read_csv("./data/rev_temp.csv") %>%
filter(agency!= "799")
rev_temp <- rev_temp %>% mutate(fund_name = fund_name_ab)
drop_type <- c("32", "45", "51",
"66", "72", "75", "79", "98")
# drops Blank, Student Fees, Retirement contributions, proceeds/investments,
# bond issue proceeds, interagency receipts, cook IGT, Prior year refunds.
rev_temp <- rev_temp %>%
filter(!rev_type %in% drop_type)%>%
mutate(
rev_type = ifelse(rev_type=="57" & agency=="478" & (source=="0618"|source=="2364"|source=="0660"|source=="1552"| source=="2306"| source=="2076"|source=="0676"|source=="0692"), "58", rev_type),
rev_type_name = ifelse(rev_type=="58", "Federal Medicaid Reimbursements", rev_type_name),
rev_type = ifelse(rev_type=="57" & agency=="494", "59", rev_type),
rev_type_name = ifelse(rev_type=="59", "Federal Transportation", rev_type_name),
rev_type_name = ifelse(rev_type=="57", "Federal - Other", rev_type_name),
rev_type = ifelse(rev_type=="6", "06", rev_type),
rev_type = ifelse(rev_type=="9", "09", rev_type))
fedrev<- rev_temp %>%
# all federal revenue
filter(rev_type == "58" | rev_type == "59" | rev_type == "57")
fedrev %>%
group_by(fy) %>%
summarise(receipts = sum(receipts/1000, na.rm = TRUE)/1000000) %>%
ggplot() +
geom_line(aes(x=fy, y=receipts)) +
theme_bw() +
labs(title = "All Federal Revenue",
y = "Billions of Dollars", x = "") +
theme(legend.position = "bottom", legend.title = element_blank() )+
scale_y_continuous(labels = comma, limits = c(0,45))
fedrev %>%
filter(source_name_AWM != "FEDERAL STIMULUS PACKAGE" & agency!="799") %>%
group_by(fy) %>%
summarise(receipts = sum(receipts/1000, na.rm = TRUE)/1000000) %>%
ggplot() +
geom_line(aes(x=fy, y=receipts)) +
theme_bw() +
labs(title = "All Federal EXCEPT Federal Stimulus Package",
y = "Billions of Dollars", x = "",
caption = "Note: Dropping Federal Stimulus Package revenue only removes the $3.519 billion from FY20,
$0.23 billion from FY21, and $8.85 billion from FY22. Also drops Great Recession Aid in 2009.
There is still $11 billion more in FY22 Federal Revenue compared to FY19.") +
theme(legend.position = "bottom", legend.title = element_blank() ) +
scale_y_continuous(labels = comma, limits = c(0,45))
```
![With and Without State CURE Funds from Federal Stimulus Packages](images/image-1706772717.png){#fig-with-without-cure}
```{r}
#| code-fold: false
fedrev %>%
filter(fy>2018) %>% # all fed rev after 2018 summed by year
group_by(fy) %>%
summarize(Revenue = sum(receipts)) %>%
mutate_if(is.numeric, round)
fedrev %>%
filter(fy>2017) %>% # all fed rev after 2017 summed by year, #gives precovid comparison for reference
group_by(fy, rev_type_name) %>%
summarize(Revenue = sum(receipts))%>%
mutate_if(is.numeric, round) %>%
pivot_wider(names_from = fy, values_from = Revenue)
fedrev %>%
#federal stimulus revenue sources after 2018
# this is ONLY the State CURE funds from CARES and ARPA
filter(source_name_AWM == "FEDERAL STIMULUS PACKAGE" & fy>2018) %>%
group_by(fy) %>%
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
mutate_if(is.numeric, round)
fedrev %>%
filter(fy>2018) %>%
group_by(fy, fund_name) %>% # all funds that received money
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
arrange(-receipts) %>%
pivot_wider(names_from = fy, values_from = receipts) %>%
mutate_if(is.numeric, round)
fedrev %>%
filter(fy>2018) %>%
group_by(fy, source_name_AWM) %>% # all revenue sources
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
arrange(-receipts) %>%
pivot_wider(names_from = fy, values_from = receipts) %>%
mutate_if(is.numeric, round)
# federal transportation revenue sources
fedrev %>%
filter(fy>2018, rev_type=="59") %>%
group_by(fy, source_name_AWM) %>%
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
arrange(-receipts) %>%
pivot_wider(names_from = fy, values_from = receipts) %>%
mutate_if(is.numeric, round)
fedrev %>%
filter(fy>2018, rev_type=="58") %>% # Fed Med only
group_by(fy, source_name_AWM) %>%
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
arrange(-receipts) %>%
pivot_wider(names_from = fy, values_from = receipts) %>%
mutate_if(is.numeric, round)
#yearly totals for Fed Med sources above
fedrev %>% # Medicaid reimbursements and healthcare provider funds
filter(fy>2018, rev_type=="58") %>%
group_by(fy) %>%
summarise(receipts = sum(receipts, na.rm = TRUE)/1000000) %>%
pivot_wider(names_from = fy, values_from = receipts)
```
## Comptroller Revenue Data
Read the charts from the top to the bottom. Most of the graphs below begin with either the year the money was committed or the name of the Law that provided the funds and then shows it flowing down to either who received the money or how it was spent.
`Sankey2023.csv` file totals \$32 billion flowing into the state. \$3.5 came in FY20, \$12.6 billion came in FY21 and \$16.1 billion in FY22. These values include both the State CURE and other federal grants to state departments for education, health providers, and much more. These observations are based more on the IOC revenue data for revenue received.
Note: \$57 million in Federal Transportation dollars are grouped with the billions of other federal revenue for simplified graphs and summaries.
PPP & Health Care Enhancement act contributed to \$2.778 billion for Provider Relief Fund. This is considered within the Medicare category in both revenues and expenditures.
Families First Act: \$4.469 billion for Medicaid (from Health and Human Services and deposited into Healthcare Provider Relief fund; Data Source IOC revenue data). This fund-revenue source combo grew from \$4 billion in 2019, \$6 billion in 2020, \$7.5 billion in 2021 and \$8.4 billion 2022.
CARES & ESSER impacts: Revenue from source "Department of Education-Fed" and deposited into "SBE Federal Dept of Education". Was \$1.45 billion in 2019 and 2020 and grew to \$2.26 billion in 2021 and \$3.35 billion in 2022.
::: callout-note
*Variable names in the sankeyattempt2022 file do not have the most useful names due to the information within morphing over time as I figured out the format to necessary for making the graphs. Any variable names used while making these graphs might not actually contain the data one would expect given the variable names. I do intend on renaming the file and changing the variable names and code to something more intuitive but have not had time to complete that task.*
:::
According to [federal data publicly available](covidmoneytracker.org), \$52 billion has been committed to Illinois (including local governments) but \$32 billion has been received by the state at the end of Fiscal Year 2022 (as of June 30, 2022, excluding local governments). An additional \$8.86 billion was committed straight to local governments. More money has been received in FY23 but is not focused on in this analysis. To see a graph of federal funds committed to the State, jump to @sec-covid-money-tracker.
![COVID-related legislation and federal revenue into Illinois](images/federal-covid-revenues.png){#fig-rev-to-illinois}
![Illinois Expenditures and Allocations for \$11.6 Billion in State CURE funds](images/cure-expenditures.png){#fig-stateCURE-expenditures}
```{r}
sankey_rev_ioc <- read_csv("./data/sankey2023.csv") %>%
filter(StFund == "Total")
sankey_rev_ioc <- sankey_rev_ioc %>% select(Federal, FF_Cat, StateFunds, StFund, Expenditures, value, Notes, Notes2, stfundname) %>%
filter(StFund == "Total") %>%
mutate(value=as.numeric(value),
# keeps order of year received from oldest to newest in graphs
StateFunds = factor(StateFunds, levels = c("Total_received_fy20","Total_received_fy21", "Total_received_fy22", "Total_received_fy23")),
# other includes transit and public health grants
Expenditures_ordered = factor(Expenditures, levels = c("Federal Other", "Other", "K-12", "Medicaid", "Medicare", "Misc.")),
FF_Cat_ordered=factor(FF_Cat, levels = c("Other", "Transit", "Medicare","Medicaid", "Federal Other")),
Federal_ordered = factor(Federal, levels = "Medicaid", "Medicare", "Federal Other"),
# keeps Legislation in chronological order,
# groups FFRCA and PPP legislation into Other *, helps simplify some graphs
Notes2 = factor(Notes2, levels = c("CARES", "Other *", "CRRSA", "ARPA")),
# keeps legislation in chronological order
Notes = factor(Notes, levels = c("CARES", "PPP", "FFCRA","CRRSA", "ARPA")))
sankey_rev_ioc %>% filter( Federal == "Federal Stimulus Packages") %>%
ggplot(
aes(y = value,
axis3=FF_Cat, axis2=Expenditures, axis1 = StateFunds, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "Over $8 billion in FY22, $11.6 Billion in State CURE total")
ggplot(sankey_rev_ioc,
aes(y = value,
axis4 = Federal, axis3=FF_Cat, axis2=Expenditures, axis1 = StateFunds, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$30.6 billion recieved FY20-FY22")
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Federal, axis2 = StateFunds, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom", legend.title = element_blank()) +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$30.6 billion in federal aid recieved by Illinois FY20-FY22",
subtitle = "$11.6 Billion for State CURE")
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Notes, axis2 = StateFunds, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Federal), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom", legend.title = element_blank()) +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$30.6 billion in federal aid recieved by Illinois FY20-FY22",
subtitle = "$11.6 Billion for State CURE")
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Notes, axis1 = StateFunds, axis2=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Federal), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom", legend.title = element_blank()) +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$30.6 billion in federal aid recieved by Illinois FY20-FY22",
subtitle = "$11.6 Billion for State CURE")
ggplot(sankey_rev_ioc,
aes(y = value,
axis4 = Notes, axis2 = StateFunds, axis3=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Federal), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom", legend.title = element_blank()) +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$30.6 billion in federal aid recieved by Illinois FY20-FY22",
subtitle = "$11.6 Billion for State CURE")
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Federal, axis2 = StateFunds, axis1=Expenditures_ordered, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom", legend.title = element_blank()) +
labs(title = "$30.6 billion in federal aid recieved by Illinois FY20-FY22",
subtitle = "$11.6 Billion for State CURE")
```
```{r include=FALSE}
#graphs without geom_text() labels that are used in Publisher
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Federal, axis2 = StateFunds, axis1=FF_Cat, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position = "bottom")
# geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
#ggtitle("$32 billion received according to Illinois Comptroller revenue data")
ggplot(sankey_rev_ioc,
aes(y = value, axis3 = Federal, axis2=FF_Cat, axis1 = StateFunds, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
# guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void()+
theme(legend.position = "bottom")
```
Some of the grouping and summarizing of data to calculate the values used in graph labels:
```{r}
#| code-fold: false
sankey_rev_ioc %>% #group_by(StateFunds) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by(Federal) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by(FF_Cat) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by(StateFunds) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by(Notes) %>%
summarize(sum=sum(value))
```
Another way to try to understand the use for the federal funds is to look at what grants were received and what expenditure fiscal category they would be included in.
```{r}
# Color indicates state fund name. this way STate CURE funds are the same color from CARES and ARPA
ggplot(sankey_rev_ioc,
aes(y = value, axis3 = Notes, axis2 = stfundname, axis1=Expenditures_ordered, label = "stratum")) +
geom_flow(aes(fill = stfundname), color = "black",reverse=FALSE) +
guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "Where the State CURE funds came from and other federal revenue received",
caption = "State CURE funds broken down by expenditure purpose in later graphs.
HPF = Healthcare Provider Fund")
# Color indicates state fund name. this way STate CURE funds are the same color from CARES and ARPA
ggplot(sankey_rev_ioc,
aes(y = value, axis3 = Notes,
# axis2 = stfundname,
axis1=Expenditures_ordered, label = "stratum")) +
geom_flow(aes(fill = StateFunds), color = "black",reverse=FALSE) +
guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = 1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "Where the State CURE funds came from and other federal revenue received",
caption = "State CURE funds broken down by expenditure purpose in later graphs.
HPF = Healthcare Provider Fund")
# Color indicates state fund name. this way State CURE funds are the same color from CARES and ARPA
ggplot(sankey_rev_ioc,
aes(y = value, axis3 = Notes, axis2 = stfundname, axis1=Expenditures_ordered, label = "stratum")) +
geom_flow(aes(fill = stfundname), color = "black",reverse=FALSE) +
guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = 1)+
theme_void() +
theme(legend.position="bottom") +
# geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "Where the State CURE funds came from and other federal revenue received",
caption = "State CURE funds broken down by expenditure purpose in later graphs.
HPF = Healthcare Provider Fund")
```
```{r}
sankey_rev_ioc %>% group_by(StateFunds, Expenditures) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by(Expenditures) %>%
summarize(sum=sum(value))
sankey_rev_ioc %>% group_by( Notes, Federal, StateFunds, FF_Cat) %>%
summarize(sum=sum(value))
# Color indicates legislation
ggplot(sankey_rev_ioc,
aes(y = value, axis4 = Federal, axis3 = Notes, axis2 = stfundname, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black",reverse=FALSE) +
guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
labs(title = "$32 Billion in Federal Funds Received, Legislation, State Fund
that Received Money, and FF Expenditure Category",
caption = "State CURE funds broken down by expenditure purpose in later graphs.
HPF = Healthcare Provider Fund")
# Same as graph above but gets rid of top axis for federal funds
# Color indicates State CURE funds or State Departments grants
# ggplot(sankey_rev_ioc,
# aes(y = value, axis3 = Notes, axis2 = stfundname, axis1=Expenditures, label = "stratum")) +
# geom_flow(aes(fill = Federal), color = "black", reverse=FALSE) +
# guides(fill = FALSE) +
# geom_stratum(reverse=FALSE)+
# coord_flip()+
# scale_fill_brewer(palette = "YlOrRd", direction = -1)+
# theme(legend.position="bottom") +
#
# theme_void() +
#
# geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
#
# labs(title = "$32 Billion in Federal Funds Received, Legislation, State Fund
# that Received Money, and FF Expenditure Category",
# caption = "State CURE funds broken down by expenditure purpose in later graphs.
# HPF = Healthcare Provider Fund.
# Color indicates State CURE funds and Grants to State Department.")
```
Highlights legislation, fund money went into, and its intended purpose using Fiscal Futures expenditure categories. The State CURE expenditures are listed as miscellaneous here but are described in more detail farther below.
```{r}
# color indicates fund
ggplot(sankey_rev_ioc,
aes(y = value, axis3 = Notes, axis2 = stfundname, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = stfundname), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2,reverse=FALSE) +
labs(title = "Legislation that provided funds, state fund receiving revenue,
and how funds were used", caption = "State CURE expenditures are not broken down in this image for readibility.
Please see graphs focused on State CURE expenditures below.")
```
::: {.callout-important icon="false"}
Remember: Medicare includes Healthcare Provider Assistance, reimbursements for the Continuous Coverage Mandate, and reimbursements for the Matching Funds Increase. This is different than GOMB categorization.
:::
These revenue graphs label State CURE as being for miscellaneous purposes due to the difficulty of representing that information broken down cleanly in the graphs. To see how ARPA funds (and State CURE funds in general) were spent, jump to @sec-state-expenditure-graphs.
```{r}
ggplot(sankey_rev_ioc,
aes(y = value,
axis3 = Notes, axis2 = StateFunds, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = stfundname), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse = FALSE)
ggplot(sankey_rev_ioc,
aes(y = value,
axis4 = Notes, axis3 = StateFunds, axis2= Federal, axis1=Expenditures, label = "stratum")) +
geom_flow(aes(fill = Notes), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom") +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse = FALSE)
```
> ::: callout-note
> Note: CARES funds were originally received and spent in Disaster Response & Recovery Fund. In FY22, unspent aid was transferred to the State CURE and then transferred again to state agencies for COVID-related expenditures. Remaining CARES funds were transferred to State CURE fund for FY22. \$337 million was also transferred from the Illinois Department of Revenue into the Illinois Housing Development Authority (IHDA). ([LBOC June 2021 Report](https://budget.illinois.gov/content/dam/soi/en/web/budget/documents/lboc/lboc-report-june-2021-final.pdf)).
> :::
## State Expenditure Graphs {#sec-state-expenditure-graphs}
Federal expenditures from CURE and other major funds . Uses the `fedCUREexpenditures.xlsx` file.
This data comes from Illinois Comptroller expenditure data, Legislative Budget Oversight Commission (LBOC) Reports, and the [ARPA Annual Recovery Plan](https://budget.illinois.gov/content/dam/soi/en/web/budget/documents/arpa/IL%20Recovery%20Plan%20Performance%20Report%202022.pdf) detailing the State's use of State and Local Fiscal Recovery Funds (SLFRF) which is prepared by the Governor's Office of Management and Budget (GOMB).
Dates on top are Fiscal Year received. Dates in the middle of the graph are Fiscal Year expenditures. Remember, federal funds for COVID recovery have been received and spent in different years.
Revenue from Local Cure is the Local Government Transfers. A small amount of the State CURE was also transferred to local governments (\$240 million in FY2021). There was also \$700 million ARPA State CURE funds transferred to local governments during FY21 and FY22.
### Fiscal Years 2020-2023
During fiscal years 2020 through 2023 \$11.03 billion (\$8.4 CURE + \$3.4266 ESSER) in State CURE and ESSER funds have been spent by the state. An additional \$6.9 billion of grants from CARES, CRRSA, and ARPA has been spent by state departments.
Over \$9 billion of State CURE funds (includes both CARES Act and ARP Act State Fiscal Recovery Fund) was received in in FY2020-2023 (nearly all of it in FY 2022).
#### CURE Dollars
> As of FY23, \$6.648 billion of the \$9 billion received has been spent. 2.352 billion allocated for the future in FY24 +
- Remember: All revenue was recieved in FY22 and the Fiscal Futures model ignores Statutory Transfers to the Fiscal Gap will look negative in FY22 (i.e. it looks "good") and the gap will be positive in FY23 and beyond (i.e. it looks "bad" because expenses \> revenues when ignoring transfers).
**CARES State CURE money:**
- \$370 million was spent in the initial pandemic response in the very end of FY2020 and \$2.858 billion CARES dollars were spent in FY21.
- In FY2022, almost all remaining CARES funds were used up (\~250 million).
- Around \$3.5 billion total spent during FY20-FY22.
**ARPA State CURE money:**
- In FY22, \$4.9 billion (of \$8.127 billion received) ARPA-State CURE dollars were spent:
- \$2.7 billion for repaying unemployment insurance trust fund, \$1 billion transferred to the general revenue fund to make up for any lost revenue caused by the pandemic (aka "Essential Government Services"), and \$1.23 billion on other programs and services (e.g. hospital stability payments, operational expenses, back to business grants and economic development).
- In FY23, \$2.47 billion spent:
- 1.36 billion for UI Trust fund repayment, and \$1.1 billion on additional areas: \$212 million for nursing home financial assistance, \$150 million for affordable housing grants, plus many more
- As of the end of FY23, \$8.01 billion of State CURE funds have been spent
Values presented in LBOC documents for the end of FY22 are slightly different than the values calculated using IOC expenditure data. IOC expenditure data includes all lag period expenditures through October so values are slightly higher than end of June calculations.
**K-12 Spending and ESSER Money**
> \$3.4266 billion Total spent through FY23 from ARP and ESSER Funds. - 1.694 billion spent in 2023 (ARP = ESSER III) but that money arrived in 2022 (=\> Fiscal Gap Implications!)
- \$2.34 Billion of ARP Emergency Relief Funds (aka ESSER III) spent in 2022 and 2023 combined
- 583 million for ESSER II in 2021
- 376 million with ESSER I in 2021 and 128 million in 2020.
- ISBE received around an additional \$7.9 billion total from ESSER compared to its normal federal funding because of COVID
- At end of State's FY23, \$3.43/\$7.9 billion = \~ 50% spent
- As of Dec.7th, it has spent 74.1% of these funds ("ESSER Spending Dashboard" 2023)
- 640 million allocated for FY24 (according to CPS, I think they have fiscal years though...)
```{r}
#| code-fold: false
cure_exp <- read_xlsx("./data/fedCUREexpenditures.xlsx")
cure_exp2023 <- cure_exp %>%
mutate(
FY_Spent = factor(FY_Spent, levels = c("2020", "2021", "2022", "2023")),
FY_Received = factor(FY_Received, levels = c("2020", "2021", "2022", "2023")))
cure_exp2023 %>% #expenditures per year
filter(State_local == "State CURE") %>%
group_by(`FY_Spent`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
# State CURE expenditures only
cure_exp2023%>%
filter(State_local == "State CURE") %>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2023 %>%
filter(State_local == "State CURE") %>%
group_by(Law, FF_Cat2)%>%
summarize(Expenditures=sum(`FY Expenditures`)) %>%
pivot_wider(names_from = Law, values_from = Expenditures)
```
Code chunk below is for State CURE funds spent through FY 2022.
```{r}
# State CURE only,
# without 2023 allocations
cure_exp2023 %>%
filter(State_local == "State CURE") %>% # for only state CURE funds
ggplot(aes(y = `FY Expenditures`, axis4 = FY_Received, axis3 = `Agency`,
axis2 = FY_Spent, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = FF_Cat2), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom")+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
labs(title = "Expenditures using State CURE funds: $8.4 spent FY20-FY22",
subtitle = "Year Received by State Department, Year Spent, and how it was spent so far",
caption = "Expenditures occured during FY20, FY21 and FY22.
Additional funds have been allocated for FY23 and can be spent until FY26.
Public Health & Public Safety combined due to overlap with IEMA's involvemnt in pandemic response.")
## State CURE only
# through FY23
cure_exp2023 %>%
filter(State_local == "State CURE") %>%
ggplot(aes(y = `FY Expenditures`, axis3 = `State_local2`, axis2 = Agency_grouped, axis1=FF_Cat2, label = "stratum"))+
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom")+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
theme(legend.position="bottom")+
labs(title = "State CURE Expenditures: Department that Received Revenue
& Purpose of Expenditure",
subtitle = "$8.4 billion spent by end of FY22")
cure_exp2023 %>% #expenditures for State government (with CURE $) and state departments
group_by(State_local2)%>%
summarize(Expenditures=sum(`FY Expenditures`))
# State CURE & ESSER grants
cure_exp2023 %>% # total expenditures
summarize(Expenditures=sum(`FY Expenditures`))
```
Major uses of the State CURE funds include \$2.7 billion for repaying the unemployment insurance trust fund deficit, \$1 billion was transferred to general revenue to make up for lost revenue during the pandemic, \$1.2 billion was transferred to multiple funds for reimbursements of pandemic response related expenses, \$705 million for Public Healthcare Providers (within Medicare), and over \$1.5 billion has gone toward various forms of economic recovery and development.
Multiple billions of dollars of spending were funded with other federal grants. For example, some CRRSA dollars were spent in FY22: \$1.1 billion ESSER II, \$332 million from a child care development block grant, \$349 million for housing stability, and \$664 million for other public health services like testing and contact tracing.
```{r}
#| code-fold: false
# ESSER Expenditures per year
# from simplified file, not the IOC expenditure file
cure_exp2023 %>%
filter(Fund == "ESSER") %>%
group_by(`FY_Spent`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
#4 levels with labels
# all federal funds in cure_exp file through 2022
ggplot(cure_exp2023,
aes(y = `FY Expenditures`,
axis4 = `FY_Received`, axis3 = `Federal Funds`,
axis2 = FY_Spent, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
theme(legend.position="bottom")+
labs( title = "Expenditures through FY2023: Year Received, Federal Fund Revenue Source,
Year Spent, & How Money was Used",
subtitle = "$15.3 of federal aid spent",
caption = "CRF & SLFRF make up the Federal Stimulus Packages, aka State CURE funds.")
```
In FY21, \$1.8 billion from the CARES-State CURE went to operations and grants for programs and services (e.g. business interruptions, child care grants, healthcare providers, rent/mortgage assistance, public health response, etc.), \$1 billion was transferred to other Agencies for reimbursing pandemic related costs, and \$569 million CARES-ESSER I funds for K-12 education.
Approximately \$3.08 billion of the ESSER funds had been spent through FY 2022 (of the \$7.88 billion received from ESSER I, II, and III received) and in FY 2022 alone, the Illinois School Board for Education received over \$5 billion from ARPA-ESSER III and spent under \$1 billion of it that fiscal year. These unspent funds do roll over to the next fiscal year but must be used by 2024. Around \$4 billion remain.
According to the [ISBE Spending Dashboard](https://www.isbe.net/Pages/ESSER-Spending-Dashboard.aspx) as of February 2, 2023, \$1.6 billion of ESSER II and \$1.6 billion of ESSER III funds have been spent so far. ESSER I has been nearly completely spent, ISBE has spent 79% of its ESSER II allocations and has spent 33% of its ESSER III allocations.
```{r}
# all funds through FY22 spent
# Year Spent, Agency received, FF Spending Category
ggplot(cure_exp2023,
aes(y = `FY Expenditures`, axis3 = FY_Spent, axis2 = Agency, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
#geom_text(stat = "stratum", label.strata = TRUE, reverse=FALSE) +
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
theme_void() +
theme(legend.position="bottom")+
labs( title = "CURE, ESSER, and other Federal Grants = $15.3 Billion Spent FY20-FY23",
subtitle = "Year Spent, Agency that Spent it & FF Spending Category")
```
- \$500 million spent in FY2020 (CARES State CURE & CARES-ESSER I)
- \$3.82 billion spent in FY2021 (CARES State CURE, CRRSA-ESSER II,... )
- \$11.03 billion spent in FY 2022 (remaining \$0.5 billion CARES-State CURE, \$5.2 billion from ARPA-State CURE, \$2 billion from ESSER II & III, plus other funds from federal grants to state agencies).
```{r}
cure_exp2023 %>%
group_by(`Federal Funds`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2023 %>% #expenditures per year
group_by(`FY_Spent`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2023 %>%
group_by(`FF_Cat`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2023 %>%
group_by(Law)%>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2023 %>%
group_by(Law, FY_Spent, FF_Cat2)%>%
summarize(Expenditures=sum(`FY Expenditures`)) %>%
pivot_wider(names_from = FY_Spent, values_from = Expenditures)
cure_exp2023 %>%
group_by(Law, FY_Received)%>%
summarize(Expenditures=sum(`FY Expenditures`)) %>%
pivot_wider(names_from = Law, values_from = Expenditures) %>% arrange(FY_Received)
cure_exp2023 %>%
group_by(Law, FY_Spent)%>%
summarize(Expenditures=sum(`FY Expenditures`)) %>%
pivot_wider(names_from = Law, values_from = Expenditures) %>%
arrange(FY_Spent)
```
```{r include=FALSE}
#4 levels, No labels
ggplot(cure_exp2023,
aes(y = `FY Expenditures`, axis4 = `FY_Received`, axis3 = `Federal Funds`, axis2 = FY_Spent, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
# guides(fill = FALSE) +
geom_stratum(reverse=FALSE)+
# geom_text(stat = "stratum", aes(label = after_stat(stratum)), reverse=FALSE) +
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void()
#geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) #+ scale_x_discrete(limits = c("FY Received", "", "FY Spent", "") ) +
# Bad reject graphs that I won't be using:
ggplot(cure_exp2023,
aes(y = `FY Expenditures`,axis3 = `Federal Funds`,axis2 = Agency, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)
```
### Fiscal Years 2020-2022
During fiscal years 2020 through 2022 \$11.03 billion (\$8.4 CURE + \$3.082 ESSER) in State CURE and ESSER funds have been spent by the state. An additional \$6.9 billion of grants from CARES, CRRSA, and ARPA has been spent by state departments.
So far, over \$8.4 billion of the State CURE funds (includes both CARES Act and ARP Act State Fiscal Recovery Fund) have been spent in FY2020-2022.
**CARES State CURE money:**
- \$370 million was spent in the initial pandemic response in the very end of FY2020 and \$2.858 billion CARES dollars were spent in FY21.
- In FY2022, almost all remaining CARES funds were used up (\~250 million).
- Around \$3.5 billion total spent during FY20-FY22.
**ARPA State CURE money:**
- In FY22, \$4.9 billion (of \$8.127 billion received) ARPA-State CURE dollars were spent:
- \$2.7 billion for repaying unemployment insurance trust fund, \$1 billion transferred to the general revenue fund to make up for any lost revenue caused by the pandemic, and \$1.23 billion on other programs and services (e.g. hospital stability payments, operational expenses, back to business grants and economic development).
Values presented in LBOC documents for the end of FY22 are slightly different than the values calculated using IOC expenditure data. IOC expenditure data includes all lag period expenditures through October so values are slightly higher than end of June calculations.
```{r}
#| code-fold: false
cure_exp <- read_xlsx("./data/fedCUREexpenditures.xlsx")
cure_exp2022 <- cure_exp %>%
filter(FY_Spent <2023) %>% # excludes FY23 and beyond
mutate(
FY_Spent = factor(FY_Spent, levels = c("2020", "2021", "2022")),
FY_Received = factor(FY_Received, levels = c("2020", "2021", "2022"))#,
# FF_Cat = factor(FF_Cat, levels = c("Econ Dev", "Human Services", "K-12", "Local Transfers", "Public Health", "Medicaid", "Public Safety", "UI Fund", "Lost Revenue")),
# FF_Cat2 = factor(FF_Cat, levels = c("Econ Dev", "Human Services", "K-12", "Local Transfers", "Public Health & Safety", "Medicare", "UI Fund", "Lost Revenue", "FY23+"))
)
cure_exp2022 %>% #expenditures per year
filter(State_local == "State CURE") %>%
group_by(FY_Spent) %>%
summarize(Expenditures = sum(as.numeric(`FY Expenditures`), na.rm=TRUE))
# State CURE expenditures only
cure_exp2022%>%
filter(State_local == "State CURE") %>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2022 %>%
filter(State_local == "State CURE") %>%
group_by(Law, FF_Cat2)%>%
summarize(Expenditures=sum(`FY Expenditures`)) %>%
pivot_wider(names_from = Law, values_from = Expenditures)
```
Code chunk below is for State CURE funds spent through FY 2022.
```{r}
# State CURE only,
# without 2023 allocations
cure_exp2022 %>%
filter(State_local == "State CURE") %>% # for only state CURE funds
ggplot(aes(y = `FY Expenditures`, axis4 = FY_Received, axis3 = `Agency`,
axis2 = FY_Spent, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = FF_Cat2), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom")+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
labs(title = "Expenditures using State CURE funds: $8.4 spent FY20-FY22",
subtitle = "Year Received by State Department, Year Spent, and how it was spent so far",
caption = "Expenditures occured during FY20, FY21 and FY22.
Additional funds have been allocated for FY23 and can be spent until FY26.
Public Health & Public Safety combined due to overlap with IEMA's involvemnt in pandemic response.")
## State CURE only
# through FY22
cure_exp2022 %>%
filter(State_local == "State CURE") %>%
ggplot(aes(y = `FY Expenditures`, axis3 = `State_local2`, axis2 = Agency_grouped, axis1=FF_Cat2, label = "stratum"))+
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
theme(legend.position="bottom")+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
theme(legend.position="bottom")+
labs(title = "State CURE Expenditures: Department that Received Revenue
& Purpose of Expenditure",
subtitle = "$8.4 billion spent by end of FY22")
cure_exp2022 %>% #expenditures for State government (with CURE $) and state departments
group_by(State_local2)%>%
summarize(Expenditures=sum(`FY Expenditures`))
# State CURE & ESSER grants
cure_exp2022%>% # total expenditures
summarize(Expenditures=sum(`FY Expenditures`))
```
Major uses of the State CURE funds include \$2.7 billion for repaying the unemployment insurance trust fund deficit, \$1 billion was transferred to general revenue to make up for lost revenue during the pandemic, \$1.2 billion was transferred to multiple funds for reimbursements of pandemic response related expenses, \$705 million for Public Healthcare Providers (within Medicare), and over \$1.5 billion has gone toward various forms of economic recovery and development.
Multiple billions of dollars of spending were funded with other federal grants. For example, some CRRSA dollars were spent in FY22: \$1.1 billion ESSER II, \$332 million from a child care development block grant, \$349 million for housing stability, and \$664 million for other public health services like testing and contact tracing.
```{r}
#| code-fold: false
# ESSER Expenditures per year
# from simplified file, not the IOC expenditure file
cure_exp2022 %>%
filter(Fund == "ESSER") %>%
group_by(`FY_Spent`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
#4 levels with labels
# all federal funds in cure_exp file through 2022
ggplot(cure_exp2022,
aes(y = `FY Expenditures`,
axis4 = `FY_Received`, axis3 = `Federal Funds`,
axis2 = FY_Spent, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
theme_void() +
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE) +
theme(legend.position="bottom")+
labs( title = "Expenditures through FY2022: Year Received, Federal Fund Revenue Source,
Year Spent, & How Money was Used",
subtitle = "$15.3 of federal aid spent",
caption = "CRF & SLFRF make up the Federal Stimulus Packages, aka State CURE funds.")
```
In FY21, \$1.8 billion from the CARES-State CURE went to operations and grants for programs and services (e.g. business interruptions, child care grants, healthcare providers, rent/mortgage assistance, public health response, etc.), \$1 billion was transferred to other Agencies for reimbursing pandemic related costs, and \$569 million CARES-ESSER I funds for K-12 education.
Approximately \$3.08 billion of the ESSER funds had been spent through FY 2022 (of the \$7.88 billion received from ESSER I, II, and III received) and in FY 2022 alone, the Illinois School Board for Education received over \$5 billion from ARPA-ESSER III and spent under \$1 billion of it that fiscal year. These unspent funds do roll over to the next fiscal year but must be used by 2024. Around \$4 billion remain.
According to the [ISBE Spending Dashboard](https://www.isbe.net/Pages/ESSER-Spending-Dashboard.aspx) as of February 2, 2023, \$1.6 billion of ESSER II and \$1.6 billion of ESSER III funds have been spent so far. ESSER I has been nearly completely spent, ISBE has spent 79% of its ESSER II allocations and has spent 33% of its ESSER III allocations.
```{r}
# all funds through FY22 spent
# Year Spent, Agency received, FF Spending Category
ggplot(cure_exp2022,
aes(y = `FY Expenditures`, axis3 = FY_Spent, axis2 = Agency, axis1=FF_Cat2, label = "stratum")) +
geom_flow(aes(fill = Law), color = "black", reverse=FALSE) +
geom_stratum(reverse=FALSE)+
#geom_text(stat = "stratum", label.strata = TRUE, reverse=FALSE) +
coord_flip()+
scale_fill_brewer(palette = "YlOrRd", direction = -1)+
geom_text(stat = "stratum", aes(label = after_stat(stratum)), size = 2, reverse=FALSE)+
theme_void() +
theme(legend.position="bottom")+
labs( title = "CURE, ESSER, and other Federal Grants = $15.3 Billion Spent FY20-FY22",
subtitle = "Year Spent, Agency that Spent it & FF Spending Category")
```
- \$500 million spent in FY2020 (CARES State CURE & CARES-ESSER I)
- \$3.82 billion spent in FY2021 (CARES State CURE, CRRSA-ESSER II,... )
- \$11.03 billion spent in FY 2022 (remaining \$0.5 billion CARES-State CURE, \$5.2 billion from ARPA-State CURE, \$2 billion from ESSER II & III, plus other funds from federal grants to state agencies).
```{r}
cure_exp2022 %>%
group_by(`Federal Funds`)%>%
summarize(Expenditures=sum(`FY Expenditures`))
cure_exp2022 %>% #expenditures per year
group_by(`FY_Spent`)%>%