Loading the libraries and datasets
CAL-ENVIRON DATASETS -includes both CalEnviroScreen Scores (CES) and environmental measures
ASTHMA DATASET -contains information on county asthma ED rates
Joining the summary datasets
chhs_asthma_wide2 <- chhs_asthma_wide %>% filter(county != "California")
ces_scores_mean$county <- trimws(ces_scores_mean$county, "right")
total_pop$county <- trimws(total_pop$county, "right")
total_table <- chhs_asthma_wide2 %>%
full_join(measures_2021_lead, by = "county") %>%
full_join(measures_2021_traffic, by = "county") %>%
full_join(ces_scores_mean, by = "county") %>%
full_join(total_pop, by = "county")%>%
full_join(total_traffic, by = "county")
total_table <- total_table %>%
mutate(pop_adjusted_ai_an_ed = `AI/AN`/total_population)%>%
mutate(pop_adjusted_asian_pi_ed = `Asian/PI`/total_population)%>%
mutate(pop_adjusted_black_ed = Black/total_population)%>%
mutate(pop_adjusted_hisp_ed = Hispanic/total_population)%>%
mutate(pop_adjusted_white_ed = White/total_population)%>%
mutate(pop_adjusted_traffic = total_traffic/total_population)
Visual #1: Table Showing County-Level Measures of Asthma ED Rates by Race/Ethnicity Strata and CES/Environmental Measures
total_table_revised <- total_table %>%
select("county",
"mean_CES_score",
"total_population",
"lead_median",
"total_traffic",
"pop_adjusted_traffic",
"AI/AN",
"pop_adjusted_ai_an_ed",
"Asian/PI",
"pop_adjusted_asian_pi_ed",
"Black",
"pop_adjusted_black_ed",
"Hispanic",
"pop_adjusted_hisp_ed",
"White",
"pop_adjusted_white_ed"
)
colnames(total_table_revised) <- c("County",
"Mean CES Score",
"Total Population",
"Lead Median",
"Total Traffic",
"Population-Adjusted Traffic",
"American Indian/Alaskan Native Asthma ED Visits",
"Population-Adjusted American Indian/Alaskan Native Asthma ED Visits",
"Asian/Pacific Islander Asthma ED Visits",
"Population-Adjusted Asian/Pacific Islander Asthma ED Visits",
"Black Asthma ED Visits",
"Population-Adjusted Black Asthma ED Visits",
"Hispanic Asthma ED Visits",
"Population-Adjusted Hispanic Asthma ED Visits",
"White Asthma ED Visits",
"Population-Adjusted White Asthma ED Visits")
knitr::kable(total_table_revised,
digits = 2,
caption = "Table 1: Mean CES Score, Measures of Lead and Traffic, and Breakdown of Asthma ED Visits per Race/Ethnicity by California County",
booktabs = T)
| County | Mean CES Score | Total Population | Lead Median | Total Traffic | Population-Adjusted Traffic | American Indian/Alaskan Native Asthma ED Visits | Population-Adjusted American Indian/Alaskan Native Asthma ED Visits | Asian/Pacific Islander Asthma ED Visits | Population-Adjusted Asian/Pacific Islander Asthma ED Visits | Black Asthma ED Visits | Population-Adjusted Black Asthma ED Visits | Hispanic Asthma ED Visits | Population-Adjusted Hispanic Asthma ED Visits | White Asthma ED Visits | Population-Adjusted White Asthma ED Visits |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Alameda | 22.91 | 1656754 | 56.56 | 430476.25 | 0.26 | NA | NA | 539 | 0 | 1681 | 0 | 915 | 0 | 726 | 0 |
| Alpine | 13.62 | 1039 | 36.51 | 70.21 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Amador | 20.74 | 38429 | 26.22 | 2266.11 | 0.06 | 0 | 0 | 0 | 0 | NA | NA | NA | NA | 87 | 0 |
| Butte | 21.70 | 225817 | 44.63 | 25177.70 | 0.11 | NA | NA | 13 | 0 | 53 | 0 | 69 | 0 | 292 | 0 |
| Calaveras | 16.11 | 45514 | 30.26 | 2031.26 | 0.04 | 0 | 0 | NA | NA | NA | NA | 12 | 0 | 90 | 0 |
| Colusa | 26.99 | 21454 | 51.38 | 723.23 | 0.03 | 0 | 0 | 0 | 0 | NA | NA | 21 | 0 | 20 | 0 |
| Contra Costa | 21.03 | 1142251 | 38.90 | 215799.77 | 0.19 | NA | NA | 209 | 0 | 1005 | 0 | 850 | 0 | 767 | 0 |
| Del Norte | 21.37 | 27495 | 46.14 | 2048.79 | 0.07 | NA | NA | NA | NA | NA | NA | 15 | 0 | 73 | 0 |
| El Dorado | 10.17 | 188563 | 21.75 | 22918.01 | 0.12 | NA | NA | NA | NA | 14 | 0 | 49 | 0 | 262 | 0 |
| Fresno | 40.92 | 984521 | 51.27 | 135314.20 | 0.14 | NA | NA | 122 | 0 | 550 | 0 | 1983 | 0 | 736 | 0 |
| Glenn | 27.11 | 27976 | 55.54 | 1535.06 | 0.05 | NA | NA | 0 | 0 | 0 | 0 | 27 | 0 | 23 | 0 |
| Humboldt | 18.55 | 135940 | 50.55 | 11419.37 | 0.08 | 24 | 0 | NA | NA | 37 | 0 | 45 | 0 | 289 | 0 |
| Imperial | 40.42 | 180701 | 41.92 | 20941.06 | 0.12 | 0 | 0 | NA | NA | NA | NA | 418 | 0 | 40 | 0 |
| Inyo | 14.76 | 17977 | 39.85 | 1760.97 | 0.10 | NA | NA | 0 | 0 | NA | NA | 12 | 0 | 22 | 0 |
| Kern | 37.03 | 887641 | 48.70 | 82612.21 | 0.09 | 11 | 0 | 57 | 0 | 520 | 0 | 1201 | 0 | 660 | 0 |
| Kings | 41.42 | 150691 | 53.78 | 9797.07 | 0.07 | NA | NA | NA | NA | 53 | 0 | 252 | 0 | 109 | 0 |
| Lake | 21.38 | 64195 | 39.59 | 3456.44 | 0.05 | NA | NA | NA | NA | 25 | 0 | 53 | 0 | 171 | 0 |
| Lassen | 17.29 | 30818 | 45.33 | 2636.42 | 0.09 | NA | NA | 11 | 0 | NA | NA | NA | NA | 53 | 0 |
| Los Angeles | 37.98 | 10081570 | 64.14 | 3328521.32 | 0.33 | 54 | 0 | 1253 | 0 | 6439 | 0 | 12755 | 0 | 3754 | 0 |
| Madera | 37.82 | 155433 | 41.95 | 13610.87 | 0.09 | 0 | 0 | NA | NA | 22 | 0 | 316 | 0 | 130 | 0 |
| Marin | 9.93 | 259943 | 47.07 | 82020.20 | 0.32 | 0 | 0 | NA | NA | 33 | 0 | 76 | 0 | 146 | 0 |
| Mariposa | 17.24 | 17420 | 28.73 | 420.02 | 0.02 | NA | NA | NA | NA | NA | NA | NA | NA | 23 | 0 |
| Mendocino | 19.80 | 87224 | 46.21 | 5528.06 | 0.06 | 20 | 0 | NA | NA | 11 | 0 | 70 | 0 | 205 | 0 |
| Merced | 44.81 | 271382 | 56.42 | 30295.53 | 0.11 | 0 | 0 | 19 | 0 | 127 | 0 | 616 | 0 | 242 | 0 |
| Modoc | 18.86 | 8907 | 55.74 | 334.92 | 0.04 | NA | NA | NA | NA | 0 | 0 | NA | NA | 19 | 0 |
| Mono | 13.35 | 14310 | 28.41 | 598.28 | 0.04 | 0 | 0 | NA | NA | 0 | 0 | 17 | 0 | 18 | 0 |
| Monterey | 21.00 | 433410 | 47.78 | 62931.45 | 0.15 | NA | NA | 30 | 0 | 57 | 0 | 587 | 0 | 191 | 0 |
| Napa | 18.43 | 139623 | 41.30 | 29887.57 | 0.21 | NA | NA | 16 | 0 | 22 | 0 | 127 | 0 | 147 | 0 |
| Nevada | 12.61 | 99244 | 23.56 | 8212.65 | 0.08 | NA | NA | NA | NA | NA | NA | 17 | 0 | 138 | 0 |
| Orange | 23.61 | 3168044 | 41.20 | 866098.93 | 0.27 | NA | NA | 452 | 0 | 286 | 0 | 2073 | 0 | 1765 | 0 |
| Placer | 11.75 | 385512 | 18.98 | 65325.84 | 0.17 | NA | NA | 35 | 0 | 30 | 0 | 74 | 0 | 436 | 0 |
| Plumas | 16.00 | 18660 | 42.41 | 1139.87 | 0.06 | NA | NA | NA | NA | NA | NA | NA | NA | 40 | 0 |
| Riverside | 26.78 | 2411439 | 31.31 | 451522.45 | 0.19 | 19 | 0 | 148 | 0 | 1074 | 0 | 2631 | 0 | 1738 | 0 |
| Sacramento | 25.24 | 1524553 | 41.61 | 322988.89 | 0.21 | 13 | 0 | 468 | 0 | 1843 | 0 | 1179 | 0 | 1609 | 0 |
| San Benito | 25.77 | 60376 | 38.51 | 5510.51 | 0.09 | 0 | 0 | NA | NA | NA | NA | 141 | 0 | 59 | 0 |
| San Bernardino | 33.65 | 2149031 | 43.29 | 351946.26 | 0.16 | 12 | 0 | 132 | 0 | 1483 | 0 | 2906 | 0 | 1762 | 0 |
| San Diego | 19.98 | 3316073 | 39.29 | 658990.33 | 0.20 | 21 | 0 | 380 | 0 | 901 | 0 | 2221 | 0 | 1706 | 0 |
| San Francisco | 18.31 | 874961 | 59.97 | 209842.15 | 0.24 | NA | NA | 207 | 0 | 445 | 0 | 328 | 0 | 364 | 0 |
| San Joaquin | 38.29 | 742603 | 43.75 | 114779.63 | 0.15 | NA | NA | 226 | 0 | 718 | 0 | 1044 | 0 | 633 | 0 |
| San Luis Obispo | 13.62 | 282165 | 36.67 | 42898.05 | 0.15 | 0 | 0 | NA | NA | NA | NA | 116 | 0 | 261 | 0 |
| San Mateo | 16.84 | 767423 | 55.75 | 197592.35 | 0.26 | NA | NA | 204 | 0 | 70 | 0 | 406 | 0 | 307 | 0 |
| Santa Barbara | 19.52 | 444829 | 41.91 | 57619.39 | 0.13 | NA | NA | 17 | 0 | 53 | 0 | 323 | 0 | 254 | 0 |
| Santa Clara | 17.04 | 1927470 | 40.91 | 501211.81 | 0.26 | NA | NA | 486 | 0 | 267 | 0 | 1219 | 0 | 713 | 0 |
| Santa Cruz | 15.53 | 273962 | 45.41 | 42052.07 | 0.15 | NA | NA | NA | NA | 21 | 0 | 174 | 0 | 241 | 0 |
| Shasta | 17.16 | 179212 | 31.59 | 22972.30 | 0.13 | 13 | 0 | 18 | 0 | 15 | 0 | 29 | 0 | 316 | 0 |
| Sierra | 18.28 | 3040 | 22.20 | 94.53 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NA | NA |
| Siskiyou | 18.55 | 43468 | 54.44 | 2652.93 | 0.06 | NA | NA | NA | NA | NA | NA | NA | NA | 62 | 0 |
| Solano | 24.78 | 441829 | 39.98 | 98240.81 | 0.22 | NA | NA | 173 | 0 | 583 | 0 | 382 | 0 | 507 | 0 |
| Sonoma | 14.88 | 499772 | 38.25 | 80356.77 | 0.16 | NA | NA | 34 | 0 | 44 | 0 | 275 | 0 | 500 | 0 |
| Stanislaus | 38.84 | 543194 | 47.35 | 63772.00 | 0.12 | NA | NA | 60 | 0 | 162 | 0 | 812 | 0 | 661 | 0 |
| Sutter | 31.70 | 96109 | 46.24 | 12297.26 | 0.13 | 0 | 0 | NA | NA | 16 | 0 | 67 | 0 | 82 | 0 |
| Tehama | 26.03 | 63912 | 48.58 | 3997.69 | 0.06 | NA | NA | NA | NA | NA | NA | 52 | 0 | 96 | 0 |
| Trinity | 14.15 | 12700 | 35.24 | 305.49 | 0.02 | 0 | 0 | NA | NA | 0 | 0 | NA | NA | 21 | 0 |
| Tulare | 42.46 | 461898 | 54.91 | 36306.39 | 0.08 | NA | NA | 14 | 0 | 63 | 0 | 752 | 0 | 279 | 0 |
| Tuolumne | 18.77 | 54045 | 29.07 | 3791.13 | 0.07 | NA | NA | 0 | 0 | NA | NA | 16 | 0 | 107 | 0 |
| Ventura | 20.80 | 847263 | 36.94 | 160508.57 | 0.19 | 0 | 0 | 37 | 0 | 66 | 0 | 667 | 0 | 538 | 0 |
| Yolo | 22.53 | 217352 | 33.70 | 22482.71 | 0.10 | 0 | 0 | 18 | 0 | 60 | 0 | 189 | 0 | 155 | 0 |
| Yuba | 30.02 | 76360 | 49.03 | 8948.43 | 0.12 | NA | NA | 0 | 0 | 24 | 0 | 49 | 0 | 109 | 0 |
Visual 1 interpretation: There are a fair amount of missing values in the Asthma ED racial subcategories which may create systematic bias in the visual outcome (which can only include the datapoints that are not NA). While there is somewhat large variance in the traffic scores and ED rates, the population-adjusted versions are within a tigher range to mitigate any potential outliers.
Visual #2: Population-Adjusted County-level Asthma ED Rates for Black Population Compared to Mean County CES Score
ggplot(total_table, aes(x= pop_adjusted_black_ed, y = mean_CES_score)) +
geom_point() +
geom_smooth(method = lm, se = F) +
labs(title = "Population-Adjusted County-level Asthma ED Rates for Black Population
Compared to Mean County CES Score with Linear Trendline",
x = "Population-Adjusted Black Asthma ED Rate",
y = "Mean County CES Score",
caption = "(data sources: California Department of Health Care Access and Information, Cal EnviroScreen)")
Visual 2 interpretation: This trendline shows a positive linear correlation between population-adjusted Black asthma ED rate and mean CES score for the various county datapoints. It does seem, however, that the data does not exactly fit the trendline as there are many bunched-up datapoints close to the origin (0,0) in the bottom left and the larger ED rate points seem to have medium asthma ED rates rather than having the highest rates (as the trendline would predict).
Visual #3: Population-Adjusted County-level Asthma ED Rates for Black Population Compared to Population-Adjusted Total County Traffic Score with Linear Trendline
ggplot(total_table, aes(x= pop_adjusted_black_ed, y = pop_adjusted_traffic)) +
geom_point() +
geom_smooth(method = lm, se = F) +
labs(title = "Population-Adjusted County-level Asthma ED Rates for Black Population
Compared to Population-Adjusted Total County Traffic Score
with Linear Trendline",
x = "Population-Adjusted Black Asthma ED Rate",
y = "Population-Adjusted Traffic",
caption = "(data sources: California Department of Health Care Access and Information, Cal EnviroScreen)")
Visual 3 interpretation: Similar to visual 2, this trendline shows a positive linear correlation between population-adjusted Black asthma ED rate and population-adjusted traffic score for the various county datapoints. Compared to visual 2, the larger ED rate datapoints do fit relatively well to the trendline, however there are many clustered datapoints with low ED rate which have varying traffic scores both above and below the trendline.