-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
245 lines (217 loc) · 19.2 KB
/
index.html
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
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="
Hospital data analysis workflow tools, modeling, and automations. This library
provides many useful tools to review common administrative hospital data. Some
of these include average length of stay, readmission rates, average net pay
amounts by service lines just to name a few. The aim is to provide a simple
and consistent verb framework that takes the guesswork out of everything.">
<title>Hospital Data Analysis Workflow Tools • healthyR</title>
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png">
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="apple-touch-icon-60x60.png">
<script src="deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet">
<script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
<!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/[email protected]/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="Hospital Data Analysis Workflow Tools">
<meta property="og:description" content="
Hospital data analysis workflow tools, modeling, and automations. This library
provides many useful tools to review common administrative hospital data. Some
of these include average length of stay, readmission rates, average net pay
amounts by service lines just to name a few. The aim is to provide a simple
and consistent verb framework that takes the guesswork out of everything.">
<meta property="og:image" content="https://www.spsanderson.com/healthyR/logo.png">
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar fixed-top navbar-dark navbar-expand-lg bg-primary"><div class="container">
<a class="navbar-brand me-2" href="index.html">healthyR</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.2.1.9000</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto">
<li class="active nav-item">
<a class="nav-link" href="index.html">
<span class="fa fa-home"></span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="articles/getting-started.html">Getting Started</a>
</li>
<li class="nav-item">
<a class="nav-link" href="articles/index.html">Articles</a>
</li>
<li class="nav-item">
<a class="nav-link" href="reference/index.html">Function Reference</a>
</li>
<li class="nav-item">
<a class="nav-link" href="news/index.html">News</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" role="search">
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="search.json" id="search-input" placeholder="Search for" autocomplete="off">
</form>
<ul class="navbar-nav">
<li class="nav-item">
<a class="external-link nav-link" href="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/spsanderson/healthyR/" aria-label="github">
<span class="fab fa fab fa-github fa-lg"></span>
</a>
</li>
</ul>
</div>
</div>
</nav><div class="container template-home">
<div class="row">
<main id="main" class="col-md-9"><div class="section level1">
<div class="page-header">
<img src="logo.png" class="logo" alt=""><h1 id="healthyr-">healthyR <img src="reference/figures/test7.png" width="147" height="170" align="right"><a class="anchor" aria-label="anchor" href="#healthyr-"></a>
</h1>
</div>
<!-- badges: start -->
<p>The goal of healthyR is to help quickly analyze common data problems in the Administrative and Clincial spaces.</p>
<div class="section level2">
<h2 id="installation">Installation<a class="anchor" aria-label="anchor" href="#installation"></a>
</h2>
<p>You can install the released version of healthyR from <a href="https://CRAN.R-project.org" class="external-link">CRAN</a> with:</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"healthyR"</span><span class="op">)</span></span></code></pre></div>
<p>And the development version from <a href="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/" class="external-link">GitHub</a> with:</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># install.packages("devtools")</span></span>
<span><span class="fu">devtools</span><span class="fu">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_github.html" class="external-link">install_github</a></span><span class="op">(</span><span class="st">"spsanderson/healthyR"</span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="example">Example<a class="anchor" aria-label="anchor" href="#example"></a>
</h2>
<p>This is a basic example of using the ts_median_excess_plt() function`:</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="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/spsanderson/healthyR" class="external-link">healthyR</a></span><span class="op">)</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="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/business-science/timetk" class="external-link">timetk</a></span><span class="op">)</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://dplyr.tidyverse.org" class="external-link">dplyr</a></span><span class="op">)</span></span>
<span></span>
<span><span class="fu"><a href="reference/ts_signature_tbl.html">ts_signature_tbl</a></span><span class="op">(</span>.data <span class="op">=</span> <span class="va">m4_daily</span>, .date_col <span class="op">=</span> <span class="va">date</span>, .pad_time <span class="op">=</span> <span class="cn">TRUE</span>, <span class="va">id</span><span class="op">)</span> <span class="op"><a href="reference/pipe.html">%>%</a></span></span>
<span> <span class="fu"><a href="reference/ts_median_excess_plt.html">ts_median_excess_plt</a></span><span class="op">(</span></span>
<span> .date_col <span class="op">=</span> <span class="va">date</span></span>
<span> , .value_col <span class="op">=</span> <span class="va">value</span></span>
<span> , .x_axis <span class="op">=</span> <span class="va">week</span></span>
<span> , .ggplot_group_var <span class="op">=</span> <span class="va">year</span></span>
<span> , .years_back <span class="op">=</span> <span class="fl">5</span></span>
<span> <span class="op">)</span></span></code></pre></div>
<p><img src="reference/figures/README-example-1.png" width="100%"></p>
<p>Here is a simple example of using the ts_signature_tbl() function:</p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="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/spsanderson/healthyR" class="external-link">healthyR</a></span><span class="op">)</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="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/business-science/timetk" class="external-link">timetk</a></span><span class="op">)</span></span>
<span></span>
<span><span class="fu"><a href="reference/ts_signature_tbl.html">ts_signature_tbl</a></span><span class="op">(</span>.data <span class="op">=</span> <span class="va">m4_daily</span>, .date_col <span class="op">=</span> <span class="va">date</span><span class="op">)</span></span>
<span><span class="co">#> # A tibble: 17,578 × 31</span></span>
<span><span class="co">#> id date value index.num diff year year.iso half quarter month</span></span>
<span><span class="co">#> <fct> <date> <dbl> <dbl> <dbl> <int> <int> <int> <int> <int></span></span>
<span><span class="co">#> 1 D410 1978-06-23 9109. 267408000 NA 1978 1978 1 2 6</span></span>
<span><span class="co">#> 2 D410 1978-06-24 9103. 267494400 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 3 D410 1978-06-25 9116. 267580800 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 4 D410 1978-06-26 9116. 267667200 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 5 D410 1978-06-27 9106. 267753600 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 6 D410 1978-06-28 9094. 267840000 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 7 D410 1978-06-29 9094. 267926400 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 8 D410 1978-06-30 9084. 268012800 86400 1978 1978 1 2 6</span></span>
<span><span class="co">#> 9 D410 1978-07-01 9081. 268099200 86400 1978 1978 2 3 7</span></span>
<span><span class="co">#> 10 D410 1978-07-02 9047. 268185600 86400 1978 1978 2 3 7</span></span>
<span><span class="co">#> # ℹ 17,568 more rows</span></span>
<span><span class="co">#> # ℹ 21 more variables: month.xts <int>, month.lbl <ord>, day <int>, hour <int>,</span></span>
<span><span class="co">#> # minute <int>, second <int>, hour12 <int>, am.pm <int>, wday <int>,</span></span>
<span><span class="co">#> # wday.xts <int>, wday.lbl <ord>, mday <int>, qday <int>, yday <int>,</span></span>
<span><span class="co">#> # mweek <int>, week <int>, week.iso <int>, week2 <int>, week3 <int>,</span></span>
<span><span class="co">#> # week4 <int>, mday7 <int></span></span></code></pre></div>
<p>Here is a simple example of using the plt_gartner_magic_chart() function:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/message.html" class="external-link">suppressPackageStartupMessages</a></span><span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="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/spsanderson/healthyR" class="external-link">healthyR</a></span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/message.html" class="external-link">suppressPackageStartupMessages</a></span><span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://tibble.tidyverse.org/" class="external-link">tibble</a></span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/message.html" class="external-link">suppressPackageStartupMessages</a></span><span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://dplyr.tidyverse.org" class="external-link">dplyr</a></span><span class="op">)</span><span class="op">)</span></span>
<span></span>
<span><span class="fu"><a href="reference/gartner_magic_chart_plt.html">gartner_magic_chart_plt</a></span><span class="op">(</span></span>
<span> .data <span class="op">=</span> <span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span>x <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">100</span>, <span class="fl">0</span>, <span class="fl">1</span><span class="op">)</span>, y <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">100</span>, <span class="fl">0</span>, <span class="fl">1</span><span class="op">)</span><span class="op">)</span></span>
<span> , .x_col <span class="op">=</span> <span class="va">x</span></span>
<span> , .y_col <span class="op">=</span> <span class="va">y</span></span>
<span> , .y_lab <span class="op">=</span> <span class="st">"los"</span></span>
<span> , .x_lab <span class="op">=</span> <span class="st">"RA"</span></span>
<span> , .plt_title <span class="op">=</span> <span class="st">"Test Title"</span></span>
<span> , .tl_lbl <span class="op">=</span> <span class="st">"Top Left lbl"</span></span>
<span> , .tr_lbl <span class="op">=</span> <span class="st">"Top Right lbl"</span></span>
<span> , .bl_lbl <span class="op">=</span> <span class="st">"Bottom Left lbl"</span></span>
<span> , .br_lbl <span class="op">=</span> <span class="st">"Bottom Right lbl"</span></span>
<span><span class="op">)</span></span></code></pre></div>
<p><img src="reference/figures/README-gartner_chart-1.png" width="100%"></p>
</div>
</div>
</main><aside class="col-md-3"><div class="links">
<h2 data-toc-skip>Links</h2>
<ul class="list-unstyled">
<li><a href="https://cloud.r-project.org/package=healthyR" class="external-link">View on CRAN</a></li>
<li><a href="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/spsanderson/healthyR/" class="external-link">Browse source code</a></li>
<li><a href="https://github.com/spsanderson/healthyR/issues" class="external-link">Report a bug</a></li>
</ul>
</div>
<div class="license">
<h2 data-toc-skip>License</h2>
<ul class="list-unstyled">
<li><a href="LICENSE.html">Full license</a></li>
<li><small><a href="https://opensource.org/licenses/mit-license.php" class="external-link">MIT</a> + file <a href="LICENSE-text.html">LICENSE</a></small></li>
</ul>
</div>
<div class="community">
<h2 data-toc-skip>Community</h2>
<ul class="list-unstyled">
<li><a href="CODE_OF_CONDUCT.html">Code of conduct</a></li>
</ul>
</div>
<div class="citation">
<h2 data-toc-skip>Citation</h2>
<ul class="list-unstyled">
<li><a href="authors.html#citation">Citing healthyR</a></li>
</ul>
</div>
<div class="developers">
<h2 data-toc-skip>Developers</h2>
<ul class="list-unstyled">
<li>Steven Sanderson <br><small class="roles"> Author, maintainer, copyright holder </small> <a href="https://orcid.org/0009-0006-7661-8247" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a> </li>
</ul>
</div>