-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject3.html
More file actions
272 lines (234 loc) · 16.6 KB
/
Project3.html
File metadata and controls
272 lines (234 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<script src="http://linglin00.github.io/Project3_files/jquery-1.11.3/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="http://linglin00.github.io/Project3_files/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<script src="http://linglin00.github.io/Project3_files/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="http://linglin00.github.io/Project3_files/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="http://linglin00.github.io/Project3_files/bootstrap-3.3.5/shim/respond.min.js"></script>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet"
href="http://linglin00.github.io/Project3_files/highlight/default.css"
type="text/css" />
<script src="http://linglin00.github.io/Project3_files/highlight/highlight.js"></script>
<style type="text/css">
pre:not([class]) {
background-color: white;
}
</style>
<script type="text/javascript">
if (window.hljs && document.readyState && document.readyState === "complete") {
window.setTimeout(function() {
hljs.initHighlighting();
}, 0);
}
</script>
<link rel="stylesheet" href="http://linglin00.github.io/Presentation.css" type="text/css" />
</head>
<body>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
code {
color: inherit;
background-color: rgba(0, 0, 0, 0.04);
}
img {
max-width:100%;
height: auto;
}
h1 {
font-size: 34px;
}
h1.title {
font-size: 38px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 18px;
}
h5 {
font-size: 16px;
}
h6 {
font-size: 12px;
}
.tabbed-pane {
padding-top: 12px;
}
button.code-folding-btn:focus {
outline: none;
}
</style>
<div class="container-fluid main-container">
<!-- tabsets -->
<script src="http://linglin00.github.io/Project3_files/navigation-1.0/tabsets.js"></script>
<script>
$(document).ready(function () {
window.buildTabsets("TOC");
});
</script>
<!-- code folding -->
<div class="fluid-row" id="header">
</div>
<h2>
<center>
<b>EDAV</b>
</center>
</h2>
<h3>
<center>
<b>PROJECT 3</b>
</center>
</h3>
<br/>
<h3>
<center>
<b>HEALTHCARE DISTRIBUTION IN USA</b>
</center>
</h3>
<br/><br/>
<h4>
<center>
Team: SixPack
</center>
</h4>
<br/<br/>
<h4>
<b>Introduction:</b>
</h4>
<p>Health resource distribution in the US is an important issue that concerns most of its citizens. It is strongly related to the wellbeing of the general public.<br/></p>
<p>Our team was interested in exploring whether the distribution of various health resources (the number of hospitals, hospital beds, etc.) are correlated with more general factors such as expenditures and income per capita. To find these answers, we used The Health Resources and Services Administration (HRSA) (<a href="http://ahrf.hrsa.gov/" class="uri">http://ahrf.hrsa.gov/</a>) downloadable database. The Health Resources and Services Administration (HRSA) is the primary Federal agency for improving access to health care services for people. <br/></p>
<br/>
<h4>
<p style="text-decoration: underline">
Demographics and Hospitals
</p>
</h4>
<p>In order to visualize the distribution of health care resources among the 50 states, we used a subset of data containing state level income per capita, population, population density, total hospitals, total hospital beds and number primary physicians. It is important to note that for these visuals, only three years were examined (2010-2012) and that each of the above metrics were normalized to put them on a per capita basis.<br/></p>
<div style="width: 100%">
<img src="http://linglin00.github.io/shiny.png" style="width: 100%"/>
</div>
<p><a href="https://ll2948.shinyapps.io/HealthCare/" style="color: blue">click here to run the application.</a> <br/> <br/> The shiny application is composed of 3 panels. The top panel shows a colored US state map showing income per capita, population density, hospitals per capita, hospital bed per capita and primary care physicians per capita based. The bottom left panel displays a bubble chart with income per capita on the vertical axis, and the above listed variables on the horizontal axis. The bubble sizes vary based on population density and the color of bubble is based on the geographical region of each state. The bottom right panel is the control panel, used to choose the category and year to plot.<br/><br/></p>
<p>The income per capita map shows that states located in the Northeast, as well as a few other states to the west are amongst the wealthiest. <br/><br/></p>
<p>When we look at population density, we can observe high concentrations along the East and West coasts. The mid-west is particularly high in hospitals per capita as well as hospital bed per capita. Interestingly, New York and California are among lowest 10% in terms of hospitals capita but New York is in the middle in terms of hospital beds per capita, while California is still in the lowest 10%. Perhaps this is because hospitals in New York cater to urban citizens so their medical centers are much larger. While Washington, Oregon and California have fewer hospitals and hospital beds, they don’t seem to be lacking in terms of number of primary care physicians. A potential cause for concern is the lack of primary care physicians in places like Idaho, Nevada, Utah and Texas. The map shows the imbalanced distribution of primary care physicians.<br/><br/></p>
<p>The bubble chart shows little correlation between income per capital and hospitals/hospital beds, but fairly strong correlation between income per capita and primary care physicians.<br/><br/></p>
<br/>
<h4>
<p style="text-decoration: underline">
Analysis of sample states
</p>
</h4>
<h5>
<center>
<b>Hospital Admissions for Selected States</b>
</center>
</h5>
<div style="text-align: center; width: 100%">
<p><img src="http://linglin00.github.io/HospitalAdmission.png" width="50%"/></p>
</div>
<p>In order to obtain an improved understanding of the relationship between factors affecting the resource distribution, we looked at a few states in greater detail. We chose to analyze the most recent data (from 2012) and six states - North Dakota (ND), New York (NY), California (CA), Texas (TA), Washington (WA) and Virginia (VA), which we believe provide information that can be inferred on the general population. The dataset includes the number of hospital admissions, the population, total medical expenses, income, number of doctors, number of hospitals, number of beds and number of students. <br/></p>
<h5>
<center>
<b>Income per Capital in Each State (unit $)</b>
</center>
</h5>
<div style="text-align: center; width: 100%">
<img src="http://linglin00.github.io/Income.png" width="50%" />
</div>
<p><br/> The gauge plot shows that the income per capita in NY and ND are apparently higher than the other four states, leading us to believe that perhaps hospital employees and expenditures are correlated.<br/></p>
<h5>
<center>
<b>Correlation of factors in each state</b>
</center>
</h5>
<p><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-1-1.png" title="" alt="" width="50%" style="display: block; margin: auto;" /> <br/> Here we evaluate the correlation between various medical resources and some more general demographic information. The results are quite interesting, we find the number of doctors is positively correlated with the number of hospital admissions, but the number of hospitals and hospital beds are negatively correlated with the number of hospital admissions. This means that in a state with a high number of hospital admissions like CA, NY we might find more doctors but fewer hospitals and hospital beds. This might be because in these states, more doctors work in larger hospitals that serve many people in denser communities. While in other States like WA and VA, the population density is much sparser and there are many small hospitals serving smaller communities.<br/><br/></p>
Another interesting result is that the number of medical students is strongly correlated to the income of the state. This seems intuitive because many medical schools are also hospitals. Since doctors are in the higher income category, we would expect the respective states to have a higher income as well <br/> <br/> <br/>
<h4>
<p style="text-decoration: underline">
Race and Beds Distribution
</p>
</h4>
<p>In this section, we will examine the number of beds per capita in different states more closely. We use the panel data from 2000 to 2012.<br/><br/></p>
<p>We also decided to explore whether race was an indicator for number of beds per capita by examining the proportion of Caucasians and African-Americans.<br/></p>
<p><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-2-1.png" title="" alt="" width="100%" /><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-2-2.png" title="" alt="" width="100%" /><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-2-3.png" title="" alt="" width="100%" /> <br/></p>
<p>The first trellis plot looks at the number of beds per capita versus the logarithm proportion of blank males over 65 years of age while the second looks at the number of beds per capita versus the logarithm proportion of white males over 65. We can see that local polynomial regression shows a negative relationship between the proportion of African-American males and the number of beds per capita in two major intervals. The trend is even more visible if we fit a linear regression to the data. We can observe a positive relationship between the proportion of Caucasian males and the number of beds per capita in the middle interval of local polynomial regression as well as a positive linear trend.<br/><br/></p>
<p>More formally, we use a fixed effect model for the panel data to train a model in order to fit the data. The F statistic and the p-value along with the actual plots show that the model fits the data well.<br/><br/></p>
<p>We are not able to definitively say that racial inequality accounts for the discrepancy in the number of beds per capita because we would need much more information to give a concrete explanation. However, these relationships shed some insight as to which areas we could explore further.<br/> <br/> <br/></p>
<h4>
<p style="text-decoration: underline">
Hospitals and Patient admissions
</p>
</h4>
<p>There is high positive correlation between number of hospitals and number of patient admissions at the national level. This is expected, since patients will have more access where there are more hospitals. However, we wanted to check if the number of admissions always increases with number of hospitals in each state.<br/></p>
<img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-3-1.png" title="" alt="" width="100%" /> <br/> We generated a distribution of hospitals and patient admissions across states and there is a general trend of more admissions where there are more hospitals. However, there are a few notable exceptions:<br/>
<ul>
<li>
TX has the most number of hospitals but CA has the highest number of patient admissions
</li>
<li>
NY and FL have similar number of hospitals and admissions
</li>
<li>
Although IL and LA have same number of hospitals, LA has far fewer admissions
</li>
</ul>
<p><br/> This graph also explores the effect of the 2008 market crash on the number of hospitals and admissions. From the graph, we do not see any discernable change in patient admissions except in CA. We need more details on CA admissions to make any definitive conclusions.<br/> <br/> <br/></p>
<h4>
<p style="text-decoration: underline">
Visual Comparison of States
</p>
</h4>
<p>In order to find additional dependence between Average Hospital Admission, Population by Age, Number of Hospitals and Total population of various states, the following correlation plot and chord diagram was prepared. Strong correlation can be observed between average number of hospital beds and patient admission.<br/></p>
<p>We wanted to further analyze the correlation of age with number of admissions and number of beds. Correlation plot of average hospital admissions, population by age, number of hospitals and total population of various states was generated. Strong correlation is observed between these factors.<br/></p>
<p><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-4-1.png" title="" alt="" width="50%" style="display: block; margin: auto;" /> <br/> We generated a Circos plot to explore how select states compared in population, number of hospitals, hospital beds and admissions in 2012. The states studied are the top ten by population i.e. CA, TX, NY, FL, IL, PA, OH, GA, MI, NC. Of these states, we find that CA scores more than the other states in all categories - population, beds, admissions and <br/></p>
<p><img src="http://linglin00.github.io/Project3_files/figure-html/unnamed-chunk-5-1.png" title="" alt="" width="60%" style="display: block; margin: auto;" /></p>
<h4>
<p style="text-decoration: underline">
Evolution of Health Metrics Over Time
</p>
</h4>
<p>Lastly, we wanted to examine how a few of the important variables changed over time. Specifically, the trends of health expenditures, inpatient days and total number of health personnel (physicians, dentists, RNs, etc.) were visualized. The first plot below is a choropleth map of total health expenditures per capita in each state. Clearly, there is a relation between the geographic location of each state and health expenditures. In general, the western and southern states tend to spend less than the northern (specifically northeastern) states. States like New York, North Dakota and South Dakota are consistently amongst the states with the highest expenditures while Nevada, Idaho, Arizona and Utah are amongst the lowest. Montana is another interesting state to watch: its expenditures increased consistently from 1995-2012. <br/></p>
<iframe width="1200" height="800" style="text-align:middle" src="https://linglin00.github.io/HealthExpenditure.html" frameborder="0" allowfullscreen>
</iframe>
<p>The last chart is a bubblechart of inpatient days per capita vs. the number of health personnel per capita where the size of the bubble is determined by health expenditures. The one state (or district) that immediately stands out is DC. In every year from 1996-2012, it is the leader in all three of the aforementioned categories by a very large margin. Another interesting observation is the trend of the chart over the years. As time elapses, the number of inpatient days per capita seems to decrease, while the number of employees per capita and health expenditures seem to be increasing. This is a bit odd; we would expect the number of inpatient days to increase as the “baby boomers” age and the healthcare system is forced to take on more elderly patients. It is also important to mention that the western states are always clustered at the bottom left corner of the chart and are the lowest in all three categories.<br/></p>
<p><img src="http://linglin00.github.io/bubbles.gif" style="width: 1200px"/></p>
<br/> <br/>
<h4>
<p style="text-decoration: underline">
Conclusion:
</p>
</h4>
<p>To conclude, several different visuals were created to examine the discrepancies in healthcare around the USA. Some interesting conclusions can be drawn from this analysis and in some cases we speculated the causation of certain phenomena. However, one must proceed with caution when making definitive statements about the actual quality of healthcare in each state. For example, the fact that California has fewer hospitals and beds then many other states does not mean that Californians receive inferior medical care. Despite being unable to provide a rigorous analysis of all the variables in the HRSA data warehouse, we were able to discover several significant trends that cannot be overlooked. A more in depth analysis of these trends could potentially yield more concrete results on the discrepancies in healthcare around the country.<br/> <br/> <br/></p>
</div>
<script>
// add bootstrap table styles to pandoc tables
$(document).ready(function () {
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
});
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
</body>
</html>