/newpage

Milestone #2

1.Description of data set.

What is the data source? (1-2 sentences on where the data is coming from, dates included, etc.)

How does the data set relate to the group problem statement and question? The mortality data set is from the provisional mortality statistics by multiple causes of death available on WONDER from 2018 and later. The mortality data includes all death certificates filed in the 50 states and the District of Columbia. Death of non-resident and fetal deaths have been excluded.The population data set. The population data figures are available by single race categories, different from the mortality date related to 2018-2020 data. The Medicare and Medicaid data on health expenditures in the US and the original data set is from the Kaiser Family Medical Foundation.the primary source for these data is from the Centers for Medicare & Medicaid Services, Office of Enterprise Data and Analytics, and Chronic Conditions Data Warehouse.

In this data set, we have access to population data from different states and age groups and information about diseases and mortality rates. Additionally, we have data on the expenditure of beneficiaries enrolled in the two CMS programs. The data set would enable us to analyze various variables and compare how mortality rates relate to healthcare expenditures in the United States. With the state variable, we could also analyze if there is a difference in public healthcare expenditures across various states in the US.

##1.Import statements for all datasets

NOTE: Please use datasets available in the PHW251 Project Data github repo Links to an external site. (this is important to make sure everyone is using the same datasets)

Use appropriate import function and package based on the type of file Utilize function arguments to control relevant components (i.e. change column types, column names, missing values, etc.)

Document the import process

## # A tibble: 14,688 × 7
##    `Residence State` `Residence State Code` `UCD - ICD Sub-Chapter`       
##    <chr>             <chr>                  <chr>                         
##  1 Alabama           01                     Intestinal infectious diseases
##  2 Alabama           01                     Intestinal infectious diseases
##  3 Alabama           01                     Intestinal infectious diseases
##  4 Alabama           01                     Intestinal infectious diseases
##  5 Alabama           01                     Other bacterial diseases      
##  6 Alabama           01                     Other bacterial diseases      
##  7 Alabama           01                     Other bacterial diseases      
##  8 Alabama           01                     Other bacterial diseases      
##  9 Alabama           01                     Other bacterial diseases      
## 10 Alabama           01                     Other bacterial diseases      
## # ℹ 14,678 more rows
## # ℹ 4 more variables: `UCD - ICD Sub-Chapter Code` <chr>,
## #   `Ten-Year Age Groups` <chr>, `Ten-Year Age Groups Code` <chr>, Deaths <dbl>
## # A tibble: 515 × 3
##    State      `Ten-Year Age Groups` Population
##    <chr>      <chr>                      <dbl>
##  1 01-Alabama 55-64 years               672373
##  2 01-Alabama 65-74 years               541944
##  3 01-Alabama 75-84 years               261671
##  4 01-Alabama 85+ years                  85202
##  5 01-Alabama 25-34 years               656423
##  6 01-Alabama 35-44 years               621325
##  7 01-Alabama 45-54 years               622194
##  8 01-Alabama 5-14 years                634228
##  9 01-Alabama 15-24 years               652715
## 10 01-Alabama < 1 year                   55812
## # ℹ 505 more rows
##                Location
## 1         UNITED STATES
## 2               ALABAMA
## 3                ALASKA
## 4               ARIZONA
## 5              ARKANSAS
## 6            CALIFORNIA
## 7              COLORADO
## 8           CONNECTICUT
## 9              DELAWARE
## 10 DISTRICT OF COLUMBIA
## 11              FLORIDA
## 12              GEORGIA
## 13               HAWAII
## 14                IDAHO
## 15             ILLINOIS
## 16              INDIANA
## 17                 IOWA
## 18               KANSAS
## 19             KENTUCKY
## 20            LOUISIANA
## 21                MAINE
## 22             MARYLAND
## 23        MASSACHUSETTS
## 24             MICHIGAN
## 25            MINNESOTA
## 26          MISSISSIPPI
## 27             MISSOURI
## 28              MONTANA
## 29             NEBRASKA
## 30               NEVADA
## 31        NEW HAMPSHIRE
## 32           NEW JERSEY
## 33           NEW MEXICO
## 34             NEW YORK
## 35       NORTH CAROLINA
## 36         NORTH DAKOTA
## 37                 OHIO
## 38             OKLAHOMA
## 39               OREGON
## 40         PENNSYLVANIA
## 41         RHODE ISLAND
## 42       SOUTH CAROLINA
## 43         SOUTH DAKOTA
## 44            TENNESSEE
## 45                TEXAS
## 46                 UTAH
## 47              VERMONT
## 48             VIRGINIA
## 49           WASHINGTON
## 50        WEST VIRGINIA
## 51            WISCONSIN
## 52              WYOMING
##    Total Traditional Medicare Part A and/or Part B Enrollees
## 1                                                   35681342
## 2                                                     528983
## 3                                                     105831
## 4                                                     767513
## 5                                                     430724
## 6                                                    3436742
## 7                                                     518796
## 8                                                     363399
## 9                                                     171134
## 10                                                     70224
## 11                                                   2359900
## 12                                                    953980
## 13                                                    145637
## 14                                                    215741
## 15                                                   1507029
## 16                                                    775334
## 17                                                    465570
## 18                                                    414903
## 19                                                    536961
## 20                                                    473575
## 21                                                    187420
## 22                                                    898929
## 23                                                    973092
## 24                                                   1024125
## 25                                                    509904
## 26                                                    431483
## 27                                                    707230
## 28                                                    188073
## 29                                                    272226
## 30                                                    316990
## 31                                                    234830
## 32                                                   1075739
## 33                                                    252475
## 34                                                   1996240
## 35                                                   1148967
## 36                                                    105943
## 37                                                   1227265
## 38                                                    528377
## 39                                                    459062
## 40                                                   1493883
## 41                                                    111983
## 42                                                    712041
## 43                                                    136475
## 44                                                    766844
## 45                                                   2347931
## 46                                                    242369
## 47                                                    124384
## 48                                                   1112731
## 49                                                    865220
## 50                                                    254195
## 51                                                    622437
## 52                                                    110505
##    Total Medicare Part A and/or Part B Persons With Utilization
## 1                                                      33193839
## 2                                                        512627
## 3                                                         90717
## 4                                                        720762
## 5                                                        409441
## 6                                                       3009051
## 7                                                        467294
## 8                                                        326323
## 9                                                        162925
## 10                                                        57112
## 11                                                      2272148
## 12                                                       900795
## 13                                                       116113
## 14                                                       201173
## 15                                                      1395073
## 16                                                       745458
## 17                                                       456550
## 18                                                       390372
## 19                                                       529922
## 20                                                       459953
## 21                                                       171388
## 22                                                       779476
## 23                                                       881664
## 24                                                       984680
## 25                                                       532333
## 26                                                       421242
## 27                                                       661529
## 28                                                       172143
## 29                                                       259753
## 30                                                       273357
## 31                                                       208051
## 32                                                       959117
## 33                                                       229007
## 34                                                      1817771
## 35                                                      1106895
## 36                                                       118795
## 37                                                      1180834
## 38                                                       492453
## 39                                                       412891
## 40                                                      1393506
## 41                                                       101231
## 42                                                       690388
## 43                                                       151688
## 44                                                       732420
## 45                                                      2119870
## 46                                                       220690
## 47                                                       114169
## 48                                                      1016486
## 49                                                       775317
## 50                                                       255668
## 51                                                       633184
## 52                                                       102034
##    Total Medicare Part A and/or Part B Program Payments
## 1                                      $395,342,489,207
## 2                                        $5,653,598,984
## 3                                        $1,051,813,241
## 4                                        $7,745,898,078
## 5                                        $4,272,207,750
## 6                                       $43,255,054,191
## 7                                        $4,904,130,297
## 8                                        $4,433,665,245
## 9                                        $1,954,121,238
## 10                                         $794,142,024
## 11                                      $28,720,918,314
## 12                                      $10,195,174,819
## 13                                       $1,088,203,917
## 14                                       $1,926,353,213
## 15                                      $17,004,301,474
## 16                                       $8,340,501,710
## 17                                       $4,587,577,906
## 18                                       $4,370,255,665
## 19                                       $5,434,363,793
## 20                                       $5,517,151,179
## 21                                       $1,716,550,370
## 22                                      $10,696,224,308
## 23                                      $11,347,566,027
## 24                                      $11,141,909,988
## 25                                       $5,858,445,932
## 26                                       $4,931,158,545
## 27                                       $7,409,955,196
## 28                                       $1,626,583,833
## 29                                       $2,904,540,192
## 30                                       $3,525,162,484
## 31                                       $2,200,212,231
## 32                                      $13,333,090,391
## 33                                       $2,187,724,333
## 34                                      $26,228,103,828
## 35                                      $11,611,543,435
## 36                                       $1,197,587,193
## 37                                      $13,045,771,320
## 38                                       $5,988,040,719
## 39                                       $3,952,432,859
## 40                                      $15,821,015,593
## 41                                       $1,090,410,347
## 42                                       $7,303,580,438
## 43                                       $1,555,704,395
## 44                                       $7,583,702,280
## 45                                      $28,089,834,378
## 46                                       $2,369,071,426
## 47                                       $1,145,092,454
## 48                                      $10,542,973,901
## 49                                       $7,559,019,903
## 50                                       $2,671,150,063
## 51                                       $6,356,566,138
## 52                                       $1,102,331,666
##    Total Traditional Medicare Part A Enrollees
## 1                                     35377335
## 2                                       522820
## 3                                       105399
## 4                                       757650
## 5                                       429009
## 6                                      3311257
## 7                                       510771
## 8                                       361543
## 9                                       170321
## 10                                       69203
## 11                                     2353861
## 12                                      935418
## 13                                      145288
## 14                                      215612
## 15                                     1489215
## 16                                      773366
## 17                                      465338
## 18                                      414155
## 19                                      526707
## 20                                      472128
## 21                                      185829
## 22                                      897175
## 23                                      971444
## 24                                     1022946
## 25                                      508826
## 26                                      431193
## 27                                      705970
## 28                                      187346
## 29                                      271901
## 30                                      314391
## 31                                      234713
## 32                                     1061472
## 33                                      247550
## 34                                     1985166
## 35                                     1141602
## 36                                      105490
## 37                                     1225316
## 38                                      528109
## 39                                      458526
## 40                                     1481205
## 41                                      109984
## 42                                      707164
## 43                                      136409
## 44                                      763609
## 45                                     2343348
## 46                                      239499
## 47                                      124291
## 48                                     1107790
## 49                                      863450
## 50                                      254051
## 51                                      622134
## 52                                      110376
##    Total Medicare Part A Persons With Utilization
## 1                                         6627749
## 2                                          116144
## 3                                           13055
## 4                                          135153
## 5                                           81568
## 6                                          588308
## 7                                           81335
## 8                                           70774
## 9                                           29004
## 10                                          11547
## 11                                         506165
## 12                                         184063
## 13                                          18643
## 14                                          33571
## 15                                         280203
## 16                                         153294
## 17                                          80032
## 18                                          78107
## 19                                         103934
## 20                                         101148
## 21                                          30294
## 22                                         139427
## 23                                         177077
## 24                                         214282
## 25                                         104932
## 26                                          84029
## 27                                         142211
## 28                                          26761
## 29                                          46809
## 30                                          57043
## 31                                          35802
## 32                                         190351
## 33                                          39477
## 34                                         363640
## 35                                         210055
## 36                                          19881
## 37                                         259740
## 38                                         107585
## 39                                          70798
## 40                                         292286
## 41                                          21390
## 42                                         126642
## 43                                          26258
## 44                                         146864
## 45                                         471057
## 46                                          42192
## 47                                          18025
## 48                                         184419
## 49                                         122873
## 50                                          53694
## 51                                         119693
## 52                                          16114
##    Total Medicare Part A Program Payments
## 1                        $187,231,365,080
## 2                          $2,684,356,995
## 3                            $467,738,024
## 4                          $3,352,520,020
## 5                          $1,954,272,166
## 6                         $21,825,304,810
## 7                          $2,113,982,177
## 8                          $2,192,521,128
## 9                            $894,050,972
## 10                           $426,460,644
## 11                        $12,763,280,221
## 12                         $4,769,434,287
## 13                           $543,127,618
## 14                           $790,234,751
## 15                         $7,832,123,746
## 16                         $3,951,144,537
## 17                         $1,893,667,043
## 18                         $1,954,248,106
## 19                         $2,490,556,294
## 20                         $2,670,820,098
## 21                           $757,180,391
## 22                         $5,044,757,576
## 23                         $5,641,311,329
## 24                         $5,378,673,779
## 25                         $2,805,279,146
## 26                         $2,192,042,115
## 27                         $3,467,638,843
## 28                           $664,345,909
## 29                         $1,269,115,537
## 30                         $1,762,836,899
## 31                         $1,006,458,207
## 32                         $6,374,936,453
## 33                           $988,032,636
## 34                        $13,612,962,626
## 35                         $5,223,625,109
## 36                           $517,686,315
## 37                         $6,579,960,614
## 38                         $2,852,468,336
## 39                         $1,784,212,918
## 40                         $7,640,779,360
## 41                           $544,813,057
## 42                         $3,190,808,841
## 43                           $674,408,947
## 44                         $3,408,835,879
## 45                        $13,915,058,282
## 46                         $1,038,107,002
## 47                           $526,765,808
## 48                         $4,690,162,397
## 49                         $3,290,191,565
## 50                         $1,328,906,844
## 51                         $2,996,655,124
## 52                           $492,503,596
##    Total Traditional Medicare Part B Enrollees
## 1                                     30726771
## 2                                       456357
## 3                                        93234
## 4                                       662898
## 5                                       384774
## 6                                      2876785
## 7                                       440280
## 8                                       297814
## 9                                       154839
## 10                                       55171
## 11                                     2064027
## 12                                      824646
## 13                                      108392
## 14                                      190798
## 15                                     1313026
## 16                                      685127
## 17                                      422730
## 18                                      371213
## 19                                      475706
## 20                                      412301
## 21                                      161984
## 22                                      754510
## 23                                      837111
## 24                                      894259
## 25                                      431720
## 26                                      393761
## 27                                      614868
## 28                                      170075
## 29                                      243477
## 30                                      262590
## 31                                      201995
## 32                                      904540
## 33                                      217588
## 34                                     1662123
## 35                                     1023283
## 36                                       95008
## 37                                     1057718
## 38                                      462960
## 39                                      389676
## 40                                     1268419
## 41                                       88713
## 42                                      643967
## 43                                      121897
## 44                                      670104
## 45                                     1975392
## 46                                      204517
## 47                                      111678
## 48                                      960543
## 49                                      739310
## 50                                      225144
## 51                                      546260
## 52                                      101463
##    Total Medicare Part B Persons With Utilization
## 1                                        32592838
## 2                                          499789
## 3                                           89885
## 4                                          703776
## 5                                          403599
## 6                                         2933568
## 7                                          458267
## 8                                          320526
## 9                                          161216
## 10                                          55774
## 11                                        2226320
## 12                                         881963
## 13                                         112687
## 14                                         197751
## 15                                        1377681
## 16                                         734207
## 17                                         452538
## 18                                         385624
## 19                                         520811
## 20                                         451437
## 21                                         168865
## 22                                         767742
## 23                                         872135
## 24                                         966947
## 25                                         523899
## 26                                         415907
## 27                                         648819
## 28                                         170237
## 29                                         257012
## 30                                         265737
## 31                                         205455
## 32                                         946765
## 33                                         223855
## 34                                        1789891
## 35                                        1089056
## 36                                         117903
## 37                                        1158833
## 38                                         483633
## 39                                         402480
## 40                                        1367393
## 41                                          98511
## 42                                         680027
## 43                                         150411
## 44                                         716924
## 45                                        2069558
## 46                                         215083
## 47                                         113141
## 48                                         999474
## 49                                         763020
## 50                                         251138
## 51                                         624176
## 52                                         101392
##    Total Medicare Part B Program Payments
## 1                        $208,111,124,126
## 2                          $2,969,241,988
## 3                            $584,075,217
## 4                          $4,393,378,059
## 5                          $2,317,935,584
## 6                         $21,429,749,381
## 7                          $2,790,148,120
## 8                          $2,241,144,117
## 9                          $1,060,070,266
## 10                           $367,681,380
## 11                        $15,957,638,094
## 12                         $5,425,740,532
## 13                           $545,076,299
## 14                         $1,136,118,462
## 15                         $9,172,177,728
## 16                         $4,389,357,173
## 17                         $2,693,910,863
## 18                         $2,416,007,560
## 19                         $2,943,807,499
## 20                         $2,846,331,082
## 21                           $959,369,979
## 22                         $5,651,466,732
## 23                         $5,706,254,698
## 24                         $5,763,236,209
## 25                         $3,053,166,786
## 26                         $2,739,116,430
## 27                         $3,942,316,353
## 28                           $962,237,925
## 29                         $1,635,424,654
## 30                         $1,762,325,585
## 31                         $1,193,754,025
## 32                         $6,958,153,938
## 33                         $1,199,691,697
## 34                        $12,615,141,203
## 35                         $6,387,918,326
## 36                           $679,900,878
## 37                         $6,465,810,706
## 38                         $3,135,572,383
## 39                         $2,168,219,941
## 40                         $8,180,236,233
## 41                           $545,597,290
## 42                         $4,112,771,597
## 43                           $881,295,447
## 44                         $4,174,866,401
## 45                        $14,174,776,096
## 46                         $1,330,964,424
## 47                           $618,326,645
## 48                         $5,852,811,504
## 49                         $4,268,828,338
## 50                         $1,342,243,219
## 51                         $3,359,911,014
## 52                           $609,828,070

/newpage

##2.Clean up column names (recommend using snake case, which is lower case text with underscores between words)

## # A tibble: 14,688 × 7
##    residence_state residence_state_code disease           ucd___icd_sub_chapte…¹
##    <chr>           <chr>                <chr>             <chr>                 
##  1 Alabama         01                   Intestinal infec… A00-A09               
##  2 Alabama         01                   Intestinal infec… A00-A09               
##  3 Alabama         01                   Intestinal infec… A00-A09               
##  4 Alabama         01                   Intestinal infec… A00-A09               
##  5 Alabama         01                   Other bacterial … A30-A49               
##  6 Alabama         01                   Other bacterial … A30-A49               
##  7 Alabama         01                   Other bacterial … A30-A49               
##  8 Alabama         01                   Other bacterial … A30-A49               
##  9 Alabama         01                   Other bacterial … A30-A49               
## 10 Alabama         01                   Other bacterial … A30-A49               
## # ℹ 14,678 more rows
## # ℹ abbreviated name: ¹​ucd___icd_sub_chapter_code
## # ℹ 3 more variables: ten_year_age_groups <chr>,
## #   ten_year_age_groups_code <chr>, deaths <dbl>
## # A tibble: 515 × 3
##    state      ten_year_age_groups population
##    <chr>      <chr>                    <dbl>
##  1 01-Alabama 55-64 years             672373
##  2 01-Alabama 65-74 years             541944
##  3 01-Alabama 75-84 years             261671
##  4 01-Alabama 85+ years                85202
##  5 01-Alabama 25-34 years             656423
##  6 01-Alabama 35-44 years             621325
##  7 01-Alabama 45-54 years             622194
##  8 01-Alabama 5-14 years              634228
##  9 01-Alabama 15-24 years             652715
## 10 01-Alabama < 1 year                 55812
## # ℹ 505 more rows
##                location
## 1         UNITED STATES
## 2               ALABAMA
## 3                ALASKA
## 4               ARIZONA
## 5              ARKANSAS
## 6            CALIFORNIA
## 7              COLORADO
## 8           CONNECTICUT
## 9              DELAWARE
## 10 DISTRICT OF COLUMBIA
## 11              FLORIDA
## 12              GEORGIA
## 13               HAWAII
## 14                IDAHO
## 15             ILLINOIS
## 16              INDIANA
## 17                 IOWA
## 18               KANSAS
## 19             KENTUCKY
## 20            LOUISIANA
## 21                MAINE
## 22             MARYLAND
## 23        MASSACHUSETTS
## 24             MICHIGAN
## 25            MINNESOTA
## 26          MISSISSIPPI
## 27             MISSOURI
## 28              MONTANA
## 29             NEBRASKA
## 30               NEVADA
## 31        NEW HAMPSHIRE
## 32           NEW JERSEY
## 33           NEW MEXICO
## 34             NEW YORK
## 35       NORTH CAROLINA
## 36         NORTH DAKOTA
## 37                 OHIO
## 38             OKLAHOMA
## 39               OREGON
## 40         PENNSYLVANIA
## 41         RHODE ISLAND
## 42       SOUTH CAROLINA
## 43         SOUTH DAKOTA
## 44            TENNESSEE
## 45                TEXAS
## 46                 UTAH
## 47              VERMONT
## 48             VIRGINIA
## 49           WASHINGTON
## 50        WEST VIRGINIA
## 51            WISCONSIN
## 52              WYOMING
##    total_traditional_medicare_part_a_and_or_part_b_enrollees
## 1                                                   35681342
## 2                                                     528983
## 3                                                     105831
## 4                                                     767513
## 5                                                     430724
## 6                                                    3436742
## 7                                                     518796
## 8                                                     363399
## 9                                                     171134
## 10                                                     70224
## 11                                                   2359900
## 12                                                    953980
## 13                                                    145637
## 14                                                    215741
## 15                                                   1507029
## 16                                                    775334
## 17                                                    465570
## 18                                                    414903
## 19                                                    536961
## 20                                                    473575
## 21                                                    187420
## 22                                                    898929
## 23                                                    973092
## 24                                                   1024125
## 25                                                    509904
## 26                                                    431483
## 27                                                    707230
## 28                                                    188073
## 29                                                    272226
## 30                                                    316990
## 31                                                    234830
## 32                                                   1075739
## 33                                                    252475
## 34                                                   1996240
## 35                                                   1148967
## 36                                                    105943
## 37                                                   1227265
## 38                                                    528377
## 39                                                    459062
## 40                                                   1493883
## 41                                                    111983
## 42                                                    712041
## 43                                                    136475
## 44                                                    766844
## 45                                                   2347931
## 46                                                    242369
## 47                                                    124384
## 48                                                   1112731
## 49                                                    865220
## 50                                                    254195
## 51                                                    622437
## 52                                                    110505
##    total_medicare_part_a_and_or_part_b_persons_with_utilization
## 1                                                      33193839
## 2                                                        512627
## 3                                                         90717
## 4                                                        720762
## 5                                                        409441
## 6                                                       3009051
## 7                                                        467294
## 8                                                        326323
## 9                                                        162925
## 10                                                        57112
## 11                                                      2272148
## 12                                                       900795
## 13                                                       116113
## 14                                                       201173
## 15                                                      1395073
## 16                                                       745458
## 17                                                       456550
## 18                                                       390372
## 19                                                       529922
## 20                                                       459953
## 21                                                       171388
## 22                                                       779476
## 23                                                       881664
## 24                                                       984680
## 25                                                       532333
## 26                                                       421242
## 27                                                       661529
## 28                                                       172143
## 29                                                       259753
## 30                                                       273357
## 31                                                       208051
## 32                                                       959117
## 33                                                       229007
## 34                                                      1817771
## 35                                                      1106895
## 36                                                       118795
## 37                                                      1180834
## 38                                                       492453
## 39                                                       412891
## 40                                                      1393506
## 41                                                       101231
## 42                                                       690388
## 43                                                       151688
## 44                                                       732420
## 45                                                      2119870
## 46                                                       220690
## 47                                                       114169
## 48                                                      1016486
## 49                                                       775317
## 50                                                       255668
## 51                                                       633184
## 52                                                       102034
##    total_medicare_part_a_and_or_part_b_program_payments
## 1                                      $395,342,489,207
## 2                                        $5,653,598,984
## 3                                        $1,051,813,241
## 4                                        $7,745,898,078
## 5                                        $4,272,207,750
## 6                                       $43,255,054,191
## 7                                        $4,904,130,297
## 8                                        $4,433,665,245
## 9                                        $1,954,121,238
## 10                                         $794,142,024
## 11                                      $28,720,918,314
## 12                                      $10,195,174,819
## 13                                       $1,088,203,917
## 14                                       $1,926,353,213
## 15                                      $17,004,301,474
## 16                                       $8,340,501,710
## 17                                       $4,587,577,906
## 18                                       $4,370,255,665
## 19                                       $5,434,363,793
## 20                                       $5,517,151,179
## 21                                       $1,716,550,370
## 22                                      $10,696,224,308
## 23                                      $11,347,566,027
## 24                                      $11,141,909,988
## 25                                       $5,858,445,932
## 26                                       $4,931,158,545
## 27                                       $7,409,955,196
## 28                                       $1,626,583,833
## 29                                       $2,904,540,192
## 30                                       $3,525,162,484
## 31                                       $2,200,212,231
## 32                                      $13,333,090,391
## 33                                       $2,187,724,333
## 34                                      $26,228,103,828
## 35                                      $11,611,543,435
## 36                                       $1,197,587,193
## 37                                      $13,045,771,320
## 38                                       $5,988,040,719
## 39                                       $3,952,432,859
## 40                                      $15,821,015,593
## 41                                       $1,090,410,347
## 42                                       $7,303,580,438
## 43                                       $1,555,704,395
## 44                                       $7,583,702,280
## 45                                      $28,089,834,378
## 46                                       $2,369,071,426
## 47                                       $1,145,092,454
## 48                                      $10,542,973,901
## 49                                       $7,559,019,903
## 50                                       $2,671,150,063
## 51                                       $6,356,566,138
## 52                                       $1,102,331,666
##    total_traditional_medicare_part_a_enrollees
## 1                                     35377335
## 2                                       522820
## 3                                       105399
## 4                                       757650
## 5                                       429009
## 6                                      3311257
## 7                                       510771
## 8                                       361543
## 9                                       170321
## 10                                       69203
## 11                                     2353861
## 12                                      935418
## 13                                      145288
## 14                                      215612
## 15                                     1489215
## 16                                      773366
## 17                                      465338
## 18                                      414155
## 19                                      526707
## 20                                      472128
## 21                                      185829
## 22                                      897175
## 23                                      971444
## 24                                     1022946
## 25                                      508826
## 26                                      431193
## 27                                      705970
## 28                                      187346
## 29                                      271901
## 30                                      314391
## 31                                      234713
## 32                                     1061472
## 33                                      247550
## 34                                     1985166
## 35                                     1141602
## 36                                      105490
## 37                                     1225316
## 38                                      528109
## 39                                      458526
## 40                                     1481205
## 41                                      109984
## 42                                      707164
## 43                                      136409
## 44                                      763609
## 45                                     2343348
## 46                                      239499
## 47                                      124291
## 48                                     1107790
## 49                                      863450
## 50                                      254051
## 51                                      622134
## 52                                      110376
##    total_medicare_part_a_persons_with_utilization
## 1                                         6627749
## 2                                          116144
## 3                                           13055
## 4                                          135153
## 5                                           81568
## 6                                          588308
## 7                                           81335
## 8                                           70774
## 9                                           29004
## 10                                          11547
## 11                                         506165
## 12                                         184063
## 13                                          18643
## 14                                          33571
## 15                                         280203
## 16                                         153294
## 17                                          80032
## 18                                          78107
## 19                                         103934
## 20                                         101148
## 21                                          30294
## 22                                         139427
## 23                                         177077
## 24                                         214282
## 25                                         104932
## 26                                          84029
## 27                                         142211
## 28                                          26761
## 29                                          46809
## 30                                          57043
## 31                                          35802
## 32                                         190351
## 33                                          39477
## 34                                         363640
## 35                                         210055
## 36                                          19881
## 37                                         259740
## 38                                         107585
## 39                                          70798
## 40                                         292286
## 41                                          21390
## 42                                         126642
## 43                                          26258
## 44                                         146864
## 45                                         471057
## 46                                          42192
## 47                                          18025
## 48                                         184419
## 49                                         122873
## 50                                          53694
## 51                                         119693
## 52                                          16114
##    total_medicare_part_a_program_payments
## 1                        $187,231,365,080
## 2                          $2,684,356,995
## 3                            $467,738,024
## 4                          $3,352,520,020
## 5                          $1,954,272,166
## 6                         $21,825,304,810
## 7                          $2,113,982,177
## 8                          $2,192,521,128
## 9                            $894,050,972
## 10                           $426,460,644
## 11                        $12,763,280,221
## 12                         $4,769,434,287
## 13                           $543,127,618
## 14                           $790,234,751
## 15                         $7,832,123,746
## 16                         $3,951,144,537
## 17                         $1,893,667,043
## 18                         $1,954,248,106
## 19                         $2,490,556,294
## 20                         $2,670,820,098
## 21                           $757,180,391
## 22                         $5,044,757,576
## 23                         $5,641,311,329
## 24                         $5,378,673,779
## 25                         $2,805,279,146
## 26                         $2,192,042,115
## 27                         $3,467,638,843
## 28                           $664,345,909
## 29                         $1,269,115,537
## 30                         $1,762,836,899
## 31                         $1,006,458,207
## 32                         $6,374,936,453
## 33                           $988,032,636
## 34                        $13,612,962,626
## 35                         $5,223,625,109
## 36                           $517,686,315
## 37                         $6,579,960,614
## 38                         $2,852,468,336
## 39                         $1,784,212,918
## 40                         $7,640,779,360
## 41                           $544,813,057
## 42                         $3,190,808,841
## 43                           $674,408,947
## 44                         $3,408,835,879
## 45                        $13,915,058,282
## 46                         $1,038,107,002
## 47                           $526,765,808
## 48                         $4,690,162,397
## 49                         $3,290,191,565
## 50                         $1,328,906,844
## 51                         $2,996,655,124
## 52                           $492,503,596
##    total_traditional_medicare_part_b_enrollees
## 1                                     30726771
## 2                                       456357
## 3                                        93234
## 4                                       662898
## 5                                       384774
## 6                                      2876785
## 7                                       440280
## 8                                       297814
## 9                                       154839
## 10                                       55171
## 11                                     2064027
## 12                                      824646
## 13                                      108392
## 14                                      190798
## 15                                     1313026
## 16                                      685127
## 17                                      422730
## 18                                      371213
## 19                                      475706
## 20                                      412301
## 21                                      161984
## 22                                      754510
## 23                                      837111
## 24                                      894259
## 25                                      431720
## 26                                      393761
## 27                                      614868
## 28                                      170075
## 29                                      243477
## 30                                      262590
## 31                                      201995
## 32                                      904540
## 33                                      217588
## 34                                     1662123
## 35                                     1023283
## 36                                       95008
## 37                                     1057718
## 38                                      462960
## 39                                      389676
## 40                                     1268419
## 41                                       88713
## 42                                      643967
## 43                                      121897
## 44                                      670104
## 45                                     1975392
## 46                                      204517
## 47                                      111678
## 48                                      960543
## 49                                      739310
## 50                                      225144
## 51                                      546260
## 52                                      101463
##    total_medicare_part_b_persons_with_utilization
## 1                                        32592838
## 2                                          499789
## 3                                           89885
## 4                                          703776
## 5                                          403599
## 6                                         2933568
## 7                                          458267
## 8                                          320526
## 9                                          161216
## 10                                          55774
## 11                                        2226320
## 12                                         881963
## 13                                         112687
## 14                                         197751
## 15                                        1377681
## 16                                         734207
## 17                                         452538
## 18                                         385624
## 19                                         520811
## 20                                         451437
## 21                                         168865
## 22                                         767742
## 23                                         872135
## 24                                         966947
## 25                                         523899
## 26                                         415907
## 27                                         648819
## 28                                         170237
## 29                                         257012
## 30                                         265737
## 31                                         205455
## 32                                         946765
## 33                                         223855
## 34                                        1789891
## 35                                        1089056
## 36                                         117903
## 37                                        1158833
## 38                                         483633
## 39                                         402480
## 40                                        1367393
## 41                                          98511
## 42                                         680027
## 43                                         150411
## 44                                         716924
## 45                                        2069558
## 46                                         215083
## 47                                         113141
## 48                                         999474
## 49                                         763020
## 50                                         251138
## 51                                         624176
## 52                                         101392
##    total_medicare_part_b_program_payments
## 1                        $208,111,124,126
## 2                          $2,969,241,988
## 3                            $584,075,217
## 4                          $4,393,378,059
## 5                          $2,317,935,584
## 6                         $21,429,749,381
## 7                          $2,790,148,120
## 8                          $2,241,144,117
## 9                          $1,060,070,266
## 10                           $367,681,380
## 11                        $15,957,638,094
## 12                         $5,425,740,532
## 13                           $545,076,299
## 14                         $1,136,118,462
## 15                         $9,172,177,728
## 16                         $4,389,357,173
## 17                         $2,693,910,863
## 18                         $2,416,007,560
## 19                         $2,943,807,499
## 20                         $2,846,331,082
## 21                           $959,369,979
## 22                         $5,651,466,732
## 23                         $5,706,254,698
## 24                         $5,763,236,209
## 25                         $3,053,166,786
## 26                         $2,739,116,430
## 27                         $3,942,316,353
## 28                           $962,237,925
## 29                         $1,635,424,654
## 30                         $1,762,325,585
## 31                         $1,193,754,025
## 32                         $6,958,153,938
## 33                         $1,199,691,697
## 34                        $12,615,141,203
## 35                         $6,387,918,326
## 36                           $679,900,878
## 37                         $6,465,810,706
## 38                         $3,135,572,383
## 39                         $2,168,219,941
## 40                         $8,180,236,233
## 41                           $545,597,290
## 42                         $4,112,771,597
## 43                           $881,295,447
## 44                         $4,174,866,401
## 45                        $14,174,776,096
## 46                         $1,330,964,424
## 47                           $618,326,645
## 48                         $5,852,811,504
## 49                         $4,268,828,338
## 50                         $1,342,243,219
## 51                         $3,359,911,014
## 52                           $609,828,070

/newpage

##3.Identify data types for 5+ data elements/columns/variables Identify 5+ data elements required for your specified scenario. If <5 elements are required to complete the analysis, please choose additional variables of interest in the data set to explore in this milestone. Utilize functions or resources in RStudio to determine the types of each data element (i.e. character, numeric, factor) Identify the desired type/format for each variable—will you need to convert any columns to numeric or another type?

ANSWERS Data elements with character as data type and are required for this study: residence_state disease ten_year_age_groups total_medicare_part_a_and_or_part_b_program_payments total_medicare_part_b_program_payments total_medicare_part_a_program_payments

Data elements with numeric double as data type and are required for this study: deaths population total_traditional_medicare_part_a_and_or_part_b_enrollees total_medicare_part_a_and_or_part_b_persons_with_utilization total_traditional_medicare_part_a_enrollees total_traditional_medicare_part_b_enrollees total_medicare_part_a_persons_with_utilization total_medicare_part_b_persons_with_utilization

Columns that need to be converted to numeric: In medicare_data_1,

total_medicare_part_a_and_or_part_b_program_payments total_medicare_part_b_program_payments total_medicare_part_a_program_payments

## spc_tbl_ [14,688 × 7] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
##  $ residence_state           : chr [1:14688] "Alabama" "Alabama" "Alabama" "Alabama" ...
##  $ residence_state_code      : chr [1:14688] "01" "01" "01" "01" ...
##  $ disease                   : chr [1:14688] "Intestinal infectious diseases" "Intestinal infectious diseases" "Intestinal infectious diseases" "Intestinal infectious diseases" ...
##  $ ucd___icd_sub_chapter_code: chr [1:14688] "A00-A09" "A00-A09" "A00-A09" "A00-A09" ...
##  $ ten_year_age_groups       : chr [1:14688] "55-64 years" "65-74 years" "75-84 years" "85+ years" ...
##  $ ten_year_age_groups_code  : chr [1:14688] "55-64" "65-74" "75-84" "85+" ...
##  $ deaths                    : num [1:14688] 15 28 42 25 17 38 94 232 379 296 ...
##  - attr(*, "spec")=
##   .. cols(
##   ..   `Residence State` = col_character(),
##   ..   `Residence State Code` = col_character(),
##   ..   `UCD - ICD Sub-Chapter` = col_character(),
##   ..   `UCD - ICD Sub-Chapter Code` = col_character(),
##   ..   `Ten-Year Age Groups` = col_character(),
##   ..   `Ten-Year Age Groups Code` = col_character(),
##   ..   Deaths = col_double()
##   .. )
##  - attr(*, "problems")=<externalptr>
## spc_tbl_ [515 × 3] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
##  $ state              : chr [1:515] "01-Alabama" "01-Alabama" "01-Alabama" "01-Alabama" ...
##  $ ten_year_age_groups: chr [1:515] "55-64 years" "65-74 years" "75-84 years" "85+ years" ...
##  $ population         : num [1:515] 672373 541944 261671 85202 656423 ...
##  - attr(*, "spec")=
##   .. cols(
##   ..   State = col_character(),
##   ..   `Ten-Year Age Groups` = col_character(),
##   ..   Population = col_double()
##   .. )
##  - attr(*, "problems")=<externalptr>
## 'data.frame':    52 obs. of  10 variables:
##  $ location                                                    : chr  "UNITED STATES" "ALABAMA" "ALASKA" "ARIZONA" ...
##  $ total_traditional_medicare_part_a_and_or_part_b_enrollees   : num  35681342 528983 105831 767513 430724 ...
##  $ total_medicare_part_a_and_or_part_b_persons_with_utilization: num  33193839 512627 90717 720762 409441 ...
##  $ total_medicare_part_a_and_or_part_b_program_payments        : chr  "$395,342,489,207" "$5,653,598,984" "$1,051,813,241" "$7,745,898,078" ...
##  $ total_traditional_medicare_part_a_enrollees                 : num  35377335 522820 105399 757650 429009 ...
##  $ total_medicare_part_a_persons_with_utilization              : num  6627749 116144 13055 135153 81568 ...
##  $ total_medicare_part_a_program_payments                      : chr  "$187,231,365,080" "$2,684,356,995" "$467,738,024" "$3,352,520,020" ...
##  $ total_traditional_medicare_part_b_enrollees                 : num  30726771 456357 93234 662898 384774 ...
##  $ total_medicare_part_b_persons_with_utilization              : num  32592838 499789 89885 703776 403599 ...
##  $ total_medicare_part_b_program_payments                      : chr  "$208,111,124,126" "$2,969,241,988" "$584,075,217" "$4,393,378,059" ...

/newpage

##4. Provide a basic description of the 5+ data elements

Considering the data set is not clean now based on our goal. We chose the following functions to perform in our data.

## Rows: 14,688
## Columns: 7
## $ residence_state            <chr> "Alabama", "Alabama", "Alabama", "Alabama",…
## $ residence_state_code       <chr> "01", "01", "01", "01", "01", "01", "01", "…
## $ disease                    <chr> "Intestinal infectious diseases", "Intestin…
## $ ucd___icd_sub_chapter_code <chr> "A00-A09", "A00-A09", "A00-A09", "A00-A09",…
## $ ten_year_age_groups        <chr> "55-64 years", "65-74 years", "75-84 years"…
## $ ten_year_age_groups_code   <chr> "55-64", "65-74", "75-84", "85+", "25-34", …
## $ deaths                     <dbl> 15, 28, 42, 25, 17, 38, 94, 232, 379, 296, …
## # A tibble: 14,688 × 7
##    residence_state residence_state_code disease           ucd___icd_sub_chapte…¹
##    <chr>           <chr>                <chr>             <chr>                 
##  1 Alabama         01                   Intestinal infec… A00-A09               
##  2 Alabama         01                   Intestinal infec… A00-A09               
##  3 Alabama         01                   Intestinal infec… A00-A09               
##  4 Alabama         01                   Intestinal infec… A00-A09               
##  5 Alabama         01                   Other bacterial … A30-A49               
##  6 Alabama         01                   Other bacterial … A30-A49               
##  7 Alabama         01                   Other bacterial … A30-A49               
##  8 Alabama         01                   Other bacterial … A30-A49               
##  9 Alabama         01                   Other bacterial … A30-A49               
## 10 Alabama         01                   Other bacterial … A30-A49               
## # ℹ 14,678 more rows
## # ℹ abbreviated name: ¹​ucd___icd_sub_chapter_code
## # ℹ 3 more variables: ten_year_age_groups <chr>,
## #   ten_year_age_groups_code <chr>, deaths <dbl>
## # A tibble: 12 × 3
##    ten_year_age_groups state population
##    <chr>               <dbl>      <dbl>
##  1 1-4 years              NA    464891.
##  2 15-24 years            NA    844876.
##  3 25-34 years            NA    892061.
##  4 35-44 years            NA    851056.
##  5 45-54 years            NA    797812.
##  6 5-14 years             NA   1096447.
##  7 55-64 years            NA    839276.
##  8 65-74 years            NA    660120.
##  9 75-84 years            NA    317766.
## 10 85+ years              NA    117172.
## 11 < 1 year               NA     82754.
## 12 <NA>                   NA        NA
## [1] 699634
## [1] 509904
## [1] 3366518

/newpage

##5. Describe cleaning that each data source may need.

A. The group with less than 1 year age may need to be removed. B. The total spending figures may need to be converted into readable numbers to make them easier to interpret.. C. We need to eliminate the states with NA information. D. We should Check for and remove duplicate rows if they exist. E. We should make sure that data types of columns are appropriate.

/newpage

MILESTONE #3

##Part -I Subsetting age group from 65-74 and 75-85 for data sets-CDC_wonder_mortality,CDC_wonder_population, kff_cms_medicare_state_summary changing columns and states in to two different columns Variable #1 aggregate of population for each age group Variable #2 aggregate death for each group to calculate mean death rate

##cleaning Dataframe Medicare:

##Merging data sets mortality1 and population1 to calculate death rate for each age group and calculate the mean

##Create two new variables-resubmitting for grading Teams will be asked to aggregate mortality data for a chosen category of cause of death and age group, calculate mortality rate for the specified cause and age group, and compare with a population-adjusted measure of Medicare utilization/enrollment.

##Clean variables needed for analysis (minimum 2) Examples Recode invalid values Handle missing data Recode categories Data re-structured as needed (aggregated/summarized and/or pivoted)

0 NA’s found across all columns of state_deaths, pop_mortality, and medicare1.

Data dictionary based on clean dataset (minimum 4 data elements), including:

ID Variable name Data type Description

  1. population_mean, Numeric, describes the ten year age groups means

  2. range_enrollees, Numeric, calculated from min and max of medicare data

  3. median_enrollee, Numeric, calculated from total traditional medicare enrollees

  4. total_death, Numeric, total death of each ten year age group in each state

  5. Mortality_rate/ 1000 Numeric, Total deaths that occured per 1000 enrollees

  6. Total death per cause Numeric, Total deaths that occurred per specific disease/UCD-ICD Sub chapter

7.percent=Numeric- percentage of part A and part B for each state

8.Total spending/enrollee Numeric, Calculated total spending for each enrollee for both Part A and Part B

One or more tables with descriptive statistics for 4 data elements

Html output that is professionally prepared for presentation Only the necessary information is outputted (you should suppress, for example, entire data frame outputs) Use of headers and sub headers to create an organized document

Milestone 4

##1.Final Visualization creation

Join all datasets together Calculate any remaining data elements needed for analysis Show code used to create joined dataset, but please do not print full data frame output (showing data structure with str() is okay)

##2. Visualizations (at least one per group member) One print quality table as requested in scenario One print quality plot or chart as requested in scenario For groups of 3, one additional print quality table or plot of your choice (can support the requested data in the scenario, or answer a different question using the same data sources)

ˆ

##3.For each visual, include Code used to generate visual Legend (if necessary) 1-2 sentence interpretation

**Newpage**

##Milestone#5(Draft) Team:15 Date: 11/27/2023

###Problem Statement:

Our non-profit organization advocates for public health policy changes and aims to defend a proposal supporting increased funding for Medicare and Medicaid programs. Our research question revolves around investigating whether there is evidence of a correlation between mortality rates and healthcare expenditures in the United States. Further, our organization seeks to identify states with higher mortality rates and lower public healthcare spending, possibly highlighting areas where policy adjustments could be crucial for public health outcomes.

###Method

We used three data sets for this project: Medicare Data for Part A and Part B enrollees, The population of the United States, and the number of deaths data for each state for various disease groups. The Medicare and Medicaid data on health expenditures in the US and the original data set is from the Kaiser Family Medical Foundation. The primary source for these data is from the Centers for Medicare & Medicaid Services, Office of Enterprise Data and Analytics, and Chronic Conditions Data Warehouse. With the data on the expenditure of beneficiaries enrolled in the Medicare programs, we will analyze and clean this data set to provide information on the utilization of both Part A and Part B programs for each enrollee. We filtered out enrollees with listed ages over 65, including age ranges 65- 74, 75- 85, and 85+, the minimum age that makes enrollees eligible to enroll in Medicare Part A and/or Part B. We also created a variable on utilizations per enrollee for each state to help us see which uses Medicare the most. We used the mortality data to compare the mortality rates for the states with high utilization for a specific disease group.

The mortality data set is from the provisional mortality statistics. Available by multiple causes of death, including the UCD -ICD sub-chapter codes on WONDER from 2018 onwards. The mortality data includes all death certificates filed in the 50 states and the District of Columbia. Death of non-resident and fetal deaths have been excluded. After cleaning up the data with basic cleaning up like using the Snake case and utilizing str()function to check their current status and convert specific columns to numeric and factor as appropriate. With mortality data, we created a data set with one row for each state and also made mortality rates for each disease group and age group over 65. This will help us see mortality rates for each state and then compare mortality rates between three different disease groups: Malignant neoplasms, Intestinal infectious disease, and other bacterial infections.

The population data figures are available by single race categories, separate from the mortality data related to 2018-2020 data. We can access population data from other states, age groups, and disease information in this data set. We calculated the population-adjusted measure for every 1000 enrollees in each state for the three specific diseases to see the Medicare utilization rate. This would help us to answer one of the research questions of whether increasing funding within these states with high mortality rates would have any association with access to Medicare.

###Analytic methods, decisions, and additional wrangling

With these three data sets, we merged all the data sets to create one single data set using state ID and age groups to assess the relationship between the utilizations/enrollee and the mortality rate within each state for the three specific diseases. We created a new one with 2444 Variables and 16 observations. This final data set was used to analyze critical data points further to create visual descriptions of our data for easy analysis. We made a median of the total enrollees for each state to review the percentage of the median affected by the most common diseases. We created a specific data dictionary to understand the new variables better.

###Data Dictionary for New Variables

##                 Data name Data type
## 1             Total_death   Numeric
## 2    Mortality_rate/ 1000   Numeric
## 3   Total death per cause   Numeric
## 4                 Percent   Numeric
## 5 Total spending/enrollee   Numeric
## 6         Population_mean   Numeric
## 7         Range_enrollees   Numeric
## 8         Median_enrollee   Numeric
##                                                              Description
## 1                   Total death of each ten-year age group in each state
## 2                          Total deaths that occurred per 1000 enrollees
## 3    Total deaths that occurred per specific disease/UCD-ICD Sub chapter
## 4                         Percentage of part A and part B for each state
## 5 Calculated total spending for each enrollee for both Part A and Part B
## 6                   Calculated from total traditional medicare enrollees
## 7                           Calculated from min and max of medicare data
## 8                                Describes the ten-year age groups means

###Results:

States with higher mortality rates due to malignant neoplasm at over 65 years old and lower Medicare spending than other states. Arkansas Tennessee Maine Iowa Oregon

States with the highest Medicare utilization for Part A and Part B for age groups over 65 years include California, Florida, and Texas, which have the least utilization of Medicare.

Top 3 states with the highest total spending per Medicare enrollee:

New York California New Jersey 7.5%, comparatively little in California Top 3 states with lowest total spending per Medicare enrollee: Hawaii Oregon Montana

Top 3 states with the highest mortality rate due to malignant neoplasm at over 65 years old: Kentucky West Virginia Oklahoma Adjusted utilization is comparatively lower.

Top 3 states with the lowest mortality rate due to malignant neoplasm at over 65 years old: Utah Hawaii Colorado

###Discussion

States such as Arkansas, Tennessee, Maine, Iowa, and Oregon exhibit higher mortality rates due to malignant neoplasms among individuals over 65 years old, connected with lower Medicare spending. This pattern raises questions about the effectiveness of healthcare allocation and the potential impact on public health outcomes. The analysis also highlights considerable variation in Medicare spending across states. New York, California, and New Jersey emerge as the top three states with the highest total spending per Medicare enrollee.

On the other hand, Hawaii, Oregon, and Montana are identified as the states with the lowest total spending per Medicare enrollee. These findings underscore the need for a subtle understanding of healthcare resource distribution and its implications for health outcomes.

Kentucky, West Virginia, and Oklahoma stand out with the highest mortality rates due to malignant neoplasms among individuals over 65 years old. Conversely, Utah, Hawaii, and Colorado demonstrate the lowest mortality rates in the same age group. These state-level variations in mortality rates provide crucial information for policy deliberations, suggesting potential areas for targeted interventions to improve health outcomes.

An interesting finding in the result is that Hawaii has the lowest total spending per Medicare enrollee and is the second state with the lowest mortality rate due to malignant neoplasms at 65 years old. This indicates that the mortality rates could be due to various other factors like accessibility to healthcare facilities, adherence to medication, socioeconomic status, stigma associated with cancer, etc. Although it may not entirely rule out a possible association, further analysis is needed to infer an association with Medicare Part A and/or Part B utilization.

The identified states with higher mortality rates and lower healthcare spending present an opportunity for policymakers to reevaluate resource allocation and healthcare infrastructure. The non-association between mortality rates and healthcare expenditures underscores the importance of adequate funding for Medicare in addressing public health challenges.