-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
104 lines (73 loc) · 3.94 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
warning = F,
message = F,
error = F,
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# MSVI
<!-- badges: start -->
<!-- badges: end -->
Website: https://asmae-toumi.github.io/MSVI/
The goal of the MSVI package is to provide researchers and analysts with health and socioeconomic data at the state, metropolitan or county-level.
The MSVI package contains:
* `ahrf`: data provided by the Area Health Resources Files (AHRF) which include the counts of health care professions at the county-level from over 50 data sources. (Source: https://data.hrsa.gov/topics/health-workforce/ahrf)
* `cms`: data from the Centers for Medicare & Medicaid Services on health outcomes and utilization. (Source: https://data.cms.gov/mapping-medicare-disparities)
* `county_health_rankings`: data provided by The County Health Rankings & Roadmaps program on health outcomes and health factors. (Source: https://www.countyhealthrankings.org/explore-health-rankings/measures-data-sources/2020-measures)
* `definitive_hc`: data on typical bed capacity and average yearly bed utilization of hospitals across the United States provided by Definitive Healthcare. (Source: https://coronavirus-resources.esri.com/datasets/)
* `svi_ranking`: the Centers for Disease Control and Prevention (CDC)'s Social Vulnerability Index (SVI) which ranks counties on 15 social factors, including unemployment, minority status, and disability, and further groups them into four related themes. SVI was calculated for metropolitan statistical area's and added to `svi_ranking.rds`. (Source for county-level data: https://www.atsdr.cdc.gov/placeandhealth/svi/index.html)
### Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("asmae-toumi/MSVI")
```
### AHRF
View raw clinician rate and clinician rate per 100,000 people at the state and county level by type of clinician.
```{r}
library(MSVI)
library(tidyverse)
ahrf %>%
filter(year_represented_by_variable == "2016") %>%
group_by(state, variable) %>%
count()
```
### CMS
The CMS data contains all-cause hospitalizations, all-cause readmissions, overall and composite PQI (Prevention Quality Index) and all emergency visits by county and state.
```{r}
cms %>%
filter(condition == "All Emergency Department Visits") %>%
group_by(county, ) %>%
summarize(total_ed = sum(analysis_value)) %>%
top_n(5)
```
### Social Vulnerability Index
CDC developed the SVI to "help public health officials and emergency response planners identify and map the communities that will most likely need support before, during, and after a hazardous event.". It ranks counties vulnerability by the following themes: socioeconomic status, household Composition & disability, minority status & language, housing type & transportation, and an overall ranking. (Source for county-level data: https://www.atsdr.cdc.gov/placeandhealth/svi/index.html)
```{r}
svi_ranking %>%
slice_max(overall_ranking, n = 20)
```
### Definitive healthcare
Data on typical bed capacity and average yearly bed utilization of hospitals across the United States provided by Definitive Healthcare. (Source: https://coronavirus-resources.esri.com/datasets/)
```{r}
library(skimr)
definitive_hc %>%
group_by(state_name) %>%
summarize(mean_icu_beds = mean(num_icu_beds))
```
### County health rankings
Data provided by The County Health Rankings & Roadmaps program on health outcomes and health factors. (Source: https://www.countyhealthrankings.org/explore-health-rankings/measures-data-sources/2020-measures)
```{r}
county_health_rankings %>%
select(state_abbreviation, housing_cost_burden = severe_housing_cost_burden_raw_value) %>%
group_by(state_abbreviation) %>%
slice_min(housing_cost_burden)
```