-
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index 4fa6a6d..46abcb2 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -1,5 +1,5 @@
-Contributor Covenant Code of Conduct
+Contributor Covenant Code of Conduct
Source:CODE_OF_CONDUCT.md
-
diff --git a/docs/LICENSE.html b/docs/LICENSE.html
index d56e006..1b002d5 100644
--- a/docs/LICENSE.html
+++ b/docs/LICENSE.html
@@ -1,5 +1,5 @@
-License
+License
-
Articles
+Articles
diff --git a/docs/authors.html b/docs/authors.html
index a0df12b..5997386 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -1,5 +1,5 @@
-Authors and Citation • healthyR Authors and Citation • healthyR
@@ -52,7 +52,7 @@
-
Authors and Citation
+Authors and Citation
diff --git a/docs/favicon-16x16.png b/docs/favicon-16x16.png
new file mode 100644
index 0000000..b986688
Binary files /dev/null and b/docs/favicon-16x16.png differ
diff --git a/docs/favicon-32x32.png b/docs/favicon-32x32.png
new file mode 100644
index 0000000..8f35647
Binary files /dev/null and b/docs/favicon-32x32.png differ
diff --git a/docs/favicon.ico b/docs/favicon.ico
new file mode 100644
index 0000000..d135d6f
Binary files /dev/null and b/docs/favicon.ico differ
diff --git a/docs/index.html b/docs/index.html
index fb57a95..0201fe6 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -12,6 +12,12 @@
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.">
Hospital Data Analysis Workflow Tools • healthyR
+
+
+
+
+
+
@@ -23,6 +29,7 @@
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.">
+
Changelog • healthyR Changelog • healthyR
@@ -52,7 +52,7 @@
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index 39b9b33..02d2745 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
getting-started: getting-started.html
-last_built: 2023-05-03T02:19Z
+last_built: 2023-05-05T16:13Z
urls:
reference: https://www.spsanderson.com/healthyR/reference
article: https://www.spsanderson.com/healthyR/articles
diff --git a/docs/reference/Rplot002.png b/docs/reference/Rplot002.png
index 8753976..cf6ed8a 100644
Binary files a/docs/reference/Rplot002.png and b/docs/reference/Rplot002.png differ
diff --git a/docs/reference/category_counts_tbl.html b/docs/reference/category_counts_tbl.html
index b90db26..ed8cee5 100644
--- a/docs/reference/category_counts_tbl.html
+++ b/docs/reference/category_counts_tbl.html
@@ -1,7 +1,7 @@
Counts by Category — category_counts_tbl • healthyR
@@ -54,7 +54,7 @@
diff --git a/docs/reference/color_blind.html b/docs/reference/color_blind.html
index 760b38b..0ffd7ed 100644
--- a/docs/reference/color_blind.html
+++ b/docs/reference/color_blind.html
@@ -1,5 +1,5 @@
-Provide Colorblind Compliant Colors — color_blind • healthyR Provide Colorblind Compliant Colors — color_blind • healthyR
@@ -52,7 +52,7 @@
Diverging Bar Chart — diverging_bar_plt • healthyR Diverging Bar Chart — diverging_bar_plt • healthyR
@@ -80,7 +80,7 @@
diff --git a/docs/reference/diverging_lollipop_plt.html b/docs/reference/diverging_lollipop_plt.html
index f85eece..83432f4 100644
--- a/docs/reference/diverging_lollipop_plt.html
+++ b/docs/reference/diverging_lollipop_plt.html
@@ -3,11 +3,11 @@
information as bar chart and diverging bar. Except that it looks more modern.
Instead of geom_bar, I use geom_point and geom_segment to get the lollipops
right. Let’s draw a lollipop using the same data I prepared in the previous
-example of diverging bars.">Diverging Lollipop Chart — diverging_lollipop_plt • healthyR Diverging Lollipop Chart — diverging_lollipop_plt • healthyR
@@ -60,7 +60,7 @@
Diagnosis to Condition Code Mapping file — dx_cc_mapping • healthyR
@@ -54,7 +54,7 @@
Gartner Magic Chart - Plotting of two continuous variables — gartner_magic_chart_plt • healthyR Gartner Magic Chart - Plotting of two continuous variables — gartner_magic_chart_plt • healthyR
@@ -52,7 +52,7 @@
Provide Colorblind Compliant Colors — hr_scale_color_colorblind • healthyR Provide Colorblind Compliant Colors — hr_scale_color_colorblind • healthyR
@@ -52,7 +52,7 @@
Provide Colorblind Compliant Colors — hr_scale_fill_colorblind • healthyR Provide Colorblind Compliant Colors — hr_scale_fill_colorblind • healthyR
@@ -52,7 +52,7 @@
Function reference • healthyR Function reference • healthyR
@@ -52,7 +52,7 @@
The goal of healthyR is to help quickly analyze common data problems in the Administrative and Clincial spaces.
diff --git a/man/figures/test7.png b/docs/logo.png similarity index 100% rename from man/figures/test7.png rename to docs/logo.png diff --git a/docs/news/index.html b/docs/news/index.html index ac4ac8c..57f8a59 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -1,5 +1,5 @@ -
-
diff --git a/docs/reference/diverging_bar_plt.html b/docs/reference/diverging_bar_plt.html
index 46550ec..11dea71 100644
--- a/docs/reference/diverging_bar_plt.html
+++ b/docs/reference/diverging_bar_plt.html
@@ -13,7 +13,7 @@
your categorical variable has 2 categories that changes values at a certain
threshold of the continuous variable. In below example, the mpg from mtcars
data set is normalized by computing the z score. Those vehicles with mpg
-above zero are marked green and those below are marked red.">Provide Colorblind Compliant Colors
+Provide Colorblind Compliant Colors
Source:R/pallette-color-blind.R
color_blind.Rd
-
diff --git a/docs/reference/dx_cc_mapping.html b/docs/reference/dx_cc_mapping.html
index c4e3743..018e303 100644
--- a/docs/reference/dx_cc_mapping.html
+++ b/docs/reference/dx_cc_mapping.html
@@ -1,7 +1,7 @@
Diverging Lollipop Chart
+Diverging Lollipop Chart
Source:R/diverging-lollipop-plt.R
diverging_lollipop_plt.Rd
-
diff --git a/docs/reference/figures/README-gartner_chart-1.png b/docs/reference/figures/README-gartner_chart-1.png
index 27c563c..7537ccb 100644
Binary files a/docs/reference/figures/README-gartner_chart-1.png and b/docs/reference/figures/README-gartner_chart-1.png differ
diff --git a/docs/reference/figures/logo.png b/docs/reference/figures/logo.png
new file mode 100644
index 0000000..6d5f246
Binary files /dev/null and b/docs/reference/figures/logo.png differ
diff --git a/docs/reference/gartner_magic_chart_plt-1.png b/docs/reference/gartner_magic_chart_plt-1.png
index 4969bff..613ba55 100644
Binary files a/docs/reference/gartner_magic_chart_plt-1.png and b/docs/reference/gartner_magic_chart_plt-1.png differ
diff --git a/docs/reference/gartner_magic_chart_plt-2.png b/docs/reference/gartner_magic_chart_plt-2.png
index a3cc4b8..a568a05 100644
Binary files a/docs/reference/gartner_magic_chart_plt-2.png and b/docs/reference/gartner_magic_chart_plt-2.png differ
diff --git a/docs/reference/gartner_magic_chart_plt.html b/docs/reference/gartner_magic_chart_plt.html
index 537031e..dac0e13 100644
--- a/docs/reference/gartner_magic_chart_plt.html
+++ b/docs/reference/gartner_magic_chart_plt.html
@@ -1,5 +1,5 @@
-Diagnosis to Condition Code Mapping file
+Diagnosis to Condition Code Mapping file
Source:R/data_files.R
dx_cc_mapping.Rd
-
diff --git a/docs/reference/hr_scale_color_colorblind.html b/docs/reference/hr_scale_color_colorblind.html
index 267e666..216136e 100644
--- a/docs/reference/hr_scale_color_colorblind.html
+++ b/docs/reference/hr_scale_color_colorblind.html
@@ -1,5 +1,5 @@
-Gartner Magic Chart - Plotting of two continuous variables
+Gartner Magic Chart - Plotting of two continuous variables
Source:R/gartner_magic_chart.R
gartner_magic_chart_plt.Rd
-
diff --git a/docs/reference/hr_scale_fill_colorblind.html b/docs/reference/hr_scale_fill_colorblind.html
index f5aafda..610ff1b 100644
--- a/docs/reference/hr_scale_fill_colorblind.html
+++ b/docs/reference/hr_scale_fill_colorblind.html
@@ -1,5 +1,5 @@
-Provide Colorblind Compliant Colors
+Provide Colorblind Compliant Colors
Source:R/pallette-color-blind.R
hr_scale_color_colorblind.Rd
-
diff --git a/docs/reference/index.html b/docs/reference/index.html
index b05cff2..06387fc 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -1,5 +1,5 @@
-Provide Colorblind Compliant Colors
+Provide Colorblind Compliant Colors
Source:R/pallette-color-blind.R
hr_scale_fill_colorblind.Rd
-
Function reference
+Function reference
diff --git a/docs/reference/los_ra_index_plt-1.png b/docs/reference/los_ra_index_plt-1.png
index 460546e..d06a228 100644
Binary files a/docs/reference/los_ra_index_plt-1.png and b/docs/reference/los_ra_index_plt-1.png differ
diff --git a/docs/reference/los_ra_index_plt-2.png b/docs/reference/los_ra_index_plt-2.png
index 065c5cf..ecd2fb5 100644
Binary files a/docs/reference/los_ra_index_plt-2.png and b/docs/reference/los_ra_index_plt-2.png differ
diff --git a/docs/reference/los_ra_index_plt.html b/docs/reference/los_ra_index_plt.html
index e80f060..9e5130b 100644
--- a/docs/reference/los_ra_index_plt.html
+++ b/docs/reference/los_ra_index_plt.html
@@ -1,7 +1,7 @@
Plot LOS and Readmit Index with Variance — los_ra_index_plt • healthyR
@@ -54,7 +54,7 @@
Make LOS and Readmit Index Summary Tibble — los_ra_index_summary_tbl • healthyR Make LOS and Readmit Index Summary Tibble — los_ra_index_summary_tbl • healthyR
@@ -52,7 +52,7 @@
Examples#> # A tibble: 15 × 4
#> los_group los_index rar_index los_ra_var
#> <dbl> <dbl> <dbl> <dbl>
-#> 1 1 0.114 0.833 1.05
-#> 2 2 0.264 1.08 0.820
-#> 3 3 0.327 2.14 1.82
-#> 4 4 0.382 1.2 0.818
-#> 5 5 0.590 1.5 0.910
-#> 6 6 0.527 0.818 0.655
-#> 7 7 0.704 1.27 0.569
-#> 8 8 0.698 1.33 0.635
-#> 9 9 1.01 0.917 0.0951
-#> 10 10 1.38 1 0.384
-#> 11 11 1.12 1.62 0.749
-#> 12 12 1.54 1.4 0.942
-#> 13 13 1.13 0.833 0.298
-#> 14 14 1.49 0.667 0.823
-#> 15 15 2.11 1.09 1.20
+#> 1 1 0.134 1.56 1.42
+#> 2 2 0.201 2.43 2.23
+#> 3 3 0.310 1.3 0.990
+#> 4 4 0.409 1.62 1.22
+#> 5 5 0.546 1.08 0.538
+#> 6 6 0.567 0.929 0.504
+#> 7 7 0.793 1.08 0.290
+#> 8 8 0.840 1.38 0.535
+#> 9 9 0.780 1.22 0.442
+#> 10 10 1.15 1.3 0.452
+#> 11 11 1.16 1.3 0.455
+#> 12 12 1.65 2.33 1.98
+#> 13 13 1.55 1.33 0.881
+#> 14 14 1.56 1.36 0.923
+#> 15 15 2.16 1.27 1.43
los_ra_index_summary_tbl(
.data = data_tbl
@@ -183,16 +183,16 @@
diff --git a/docs/reference/named_item_list.html b/docs/reference/named_item_list.html
index 20236f6..f69169e 100644
--- a/docs/reference/named_item_list.html
+++ b/docs/reference/named_item_list.html
@@ -1,9 +1,9 @@
Tibble to named list — named_item_list • healthyR Tibble to named list — named_item_list • healthyR
@@ -56,7 +56,7 @@
diff --git a/docs/reference/opt_bin.html b/docs/reference/opt_bin.html
index 521a2cd..e50f6ed 100644
--- a/docs/reference/opt_bin.html
+++ b/docs/reference/opt_bin.html
@@ -1,7 +1,7 @@
Get the optimal binwidth for a histogram — opt_bin • healthyR
@@ -54,7 +54,7 @@
diff --git a/docs/reference/pipe.html b/docs/reference/pipe.html
index fec520a..383f431 100644
--- a/docs/reference/pipe.html
+++ b/docs/reference/pipe.html
@@ -1,5 +1,5 @@
-Pipe operator — %>% • healthyR Pipe operator — %>% • healthyR
@@ -52,7 +52,7 @@
diff --git a/docs/reference/px_cc_mapping.html b/docs/reference/px_cc_mapping.html
index 71e78b4..3473b0c 100644
--- a/docs/reference/px_cc_mapping.html
+++ b/docs/reference/px_cc_mapping.html
@@ -1,7 +1,7 @@
Procedure to Condition Code Mapping file — px_cc_mapping • healthyR
@@ -54,7 +54,7 @@
Save a file to Excel — save_to_excel • healthyR Save a file to Excel — save_to_excel • healthyR
@@ -56,7 +56,7 @@
diff --git a/docs/reference/service_line_augment.html b/docs/reference/service_line_augment.html
index d0ce495..ac40c6b 100644
--- a/docs/reference/service_line_augment.html
+++ b/docs/reference/service_line_augment.html
@@ -1,7 +1,7 @@
Service Line Grouper Augment Function — service_line_augment • healthyR
@@ -54,7 +54,7 @@
Service Line Grouper Vectorized Function — service_line_vec • healthyR
@@ -54,7 +54,7 @@
Use SQL LEFT type function — sql_left • healthyR Use SQL LEFT type function — sql_left • healthyR
@@ -52,7 +52,7 @@
diff --git a/docs/reference/sql_mid.html b/docs/reference/sql_mid.html
index 79855fb..90573e7 100644
--- a/docs/reference/sql_mid.html
+++ b/docs/reference/sql_mid.html
@@ -1,5 +1,5 @@
-Use SQL MID type function — sql_mid • healthyR Use SQL MID type function — sql_mid • healthyR
@@ -52,7 +52,7 @@
diff --git a/docs/reference/sql_right.html b/docs/reference/sql_right.html
index ad5d7de..316a138 100644
--- a/docs/reference/sql_right.html
+++ b/docs/reference/sql_right.html
@@ -1,5 +1,5 @@
-Use SQL RIGHT type functions — sql_right • healthyR Use SQL RIGHT type functions — sql_right • healthyR
@@ -52,7 +52,7 @@
Tidy eval helpers — tidyeval • healthyR Tidy eval helpers — tidyeval • healthyR
@@ -114,7 +114,7 @@
diff --git a/docs/reference/top_n_tbl.html b/docs/reference/top_n_tbl.html
index 0261aa5..5aaccb8 100644
--- a/docs/reference/top_n_tbl.html
+++ b/docs/reference/top_n_tbl.html
@@ -1,7 +1,7 @@
Top N tibble — top_n_tbl • healthyR
@@ -54,7 +54,7 @@
diff --git a/docs/reference/ts_alos_plt.html b/docs/reference/ts_alos_plt.html
index 141fbec..58277c4 100644
--- a/docs/reference/ts_alos_plt.html
+++ b/docs/reference/ts_alos_plt.html
@@ -1,5 +1,5 @@
-Plot ALOS - Average Length of Stay — ts_alos_plt • healthyR Plot ALOS - Average Length of Stay — ts_alos_plt • healthyR
@@ -52,7 +52,7 @@
Time Series - Census and LOS by Day — ts_census_los_daily_tbl • healthyR Time Series - Census and LOS by Day — ts_census_los_daily_tbl • healthyR
@@ -72,7 +72,7 @@
Create a plot showing the excess of the median value — ts_median_excess_plt • healthyR Create a plot showing the excess of the median value — ts_median_excess_plt • healthyR
@@ -52,7 +52,7 @@
Time Series Plot — ts_plt • healthyR Time Series Plot — ts_plt • healthyR
@@ -56,7 +56,7 @@
diff --git a/docs/reference/ts_readmit_rate_plt.html b/docs/reference/ts_readmit_rate_plt.html
index 6081d1b..ec2892b 100644
--- a/docs/reference/ts_readmit_rate_plt.html
+++ b/docs/reference/ts_readmit_rate_plt.html
@@ -1,5 +1,5 @@
-Plot Readmit Rate — ts_readmit_rate_plt • healthyR Plot Readmit Rate — ts_readmit_rate_plt • healthyR
@@ -52,7 +52,7 @@
diff --git a/docs/reference/ts_signature_tbl.html b/docs/reference/ts_signature_tbl.html
index 5fa60e2..7b75afa 100644
--- a/docs/reference/ts_signature_tbl.html
+++ b/docs/reference/ts_signature_tbl.html
@@ -1,9 +1,9 @@
Make a Time Enhanced Tibble — ts_signature_tbl • healthyR Make a Time Enhanced Tibble — ts_signature_tbl • healthyR
@@ -56,7 +56,7 @@
\"Medical\", \"Schizophrenia\", \"Syncope\", \"Pneumonia\", \"Ch… #> $ payer_grouping \"Blue Cross\", \"Medicare A\", \"Medicare A\", \"Medicare A\",… #> $ record 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1…"},{"path":"https://www.spsanderson.com/healthyR/articles/kmeans-umap.html","id":"user-item-tibble","dir":"Articles","previous_headings":"","what":"User Item Tibble","title":"Clustering with K-Means and UMAP","text":"table aggregated item various users algorithm applied. Now data need find optimal k (clusters). need generate table data column k k apply k-means function data k return total within sum squares. convienent function called kmeans_mapped_tbl takes sole argument output kmeans_user_item_tbl. argument .centers default set 15.","code":"uit_tbl <- kmeans_user_item_tbl(data_tbl, service_line, payer_grouping, record) uit_tbl #> # A tibble: 23 × 12 #> service_line Blue …¹ Comme…² Compe…³ Excha…⁴ HMO Medic…⁵ Medic…⁶ Medic…⁷ #> #> 1 Alcohol Abuse 0.0941 0.0321 5.25e-4 0.0116 0.0788 0.158 0.367 0.173 #> 2 Bariatric Sur… 0.317 0.0583 0 0.0518 0.168 0.00324 0.343 0.0485 #> 3 Carotid Endar… 0.0845 0.0282 0 0 0.0141 0 0.0282 0.648 #> 4 Cellulitis 0.110 0.0339 1.18e-2 0.00847 0.0805 0.0869 0.192 0.355 #> 5 Chest Pain 0.144 0.0391 2.90e-3 0.00543 0.112 0.0522 0.159 0.324 #> 6 CHF 0.0295 0.00958 5.18e-4 0.00414 0.0205 0.0197 0.0596 0.657 #> 7 COPD 0.0493 0.0228 2.28e-4 0.00548 0.0342 0.0461 0.172 0.520 #> 8 CVA 0.0647 0.0246 1.07e-3 0.0107 0.0524 0.0289 0.0764 0.555 #> 9 GI Hemorrhage 0.0542 0.0175 1.25e-3 0.00834 0.0480 0.0350 0.0855 0.588 #> 10 Joint Replace… 0.139 0.0179 3.36e-2 0.00673 0.0516 0 0.0874 0.5 #> # … with 13 more rows, 3 more variables: `Medicare HMO` , #> # `No Fault` , `Self Pay` , and abbreviated variable names #> # ¹`Blue Cross`, ²Commercial, ³Compensation, ⁴`Exchange Plans`, ⁵Medicaid, #> # ⁶`Medicaid HMO`, ⁷`Medicare A` #> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names"},{"path":"https://www.spsanderson.com/healthyR/articles/kmeans-umap.html","id":"k-means-mapped-tibble","dir":"Articles","previous_headings":"","what":"K-Means Mapped Tibble","title":"Clustering with K-Means and UMAP","text":"see three columns, centers, k_means glance. k_means column k_means list object glance tibble returned broom::glance function. stated use tot.withinss decide become k, easy way visualize Scree Plot, also known elbow plot. done ploting x-axis centers y-axis tot.withinss.","code":"kmm_tbl <- kmeans_mapped_tbl(uit_tbl) kmm_tbl #> # A tibble: 15 × 3 #> centers k_means glance #>
-
diff --git a/docs/reference/los_ra_index_summary_tbl.html b/docs/reference/los_ra_index_summary_tbl.html
index b419258..63f8aa4 100644
--- a/docs/reference/los_ra_index_summary_tbl.html
+++ b/docs/reference/los_ra_index_summary_tbl.html
@@ -1,5 +1,5 @@
-Plot LOS and Readmit Index with Variance
+Plot LOS and Readmit Index with Variance
Source:R/los_ra_index_plt.R
los_ra_index_plt.Rd
-
@@ -156,21 +156,21 @@ Make LOS and Readmit Index Summary Tibble
+Make LOS and Readmit Index Summary Tibble
Source:R/data_tbl_functions.R
los_ra_index_summary_tbl.Rd
Examples#> # A tibble: 15 × 4
#> los_group los_index rar_index los_ra_var
#> <dbl> <dbl> <dbl> <dbl>
-#> 1 1 0.114 0.833 1.05
-#> 2 2 0.264 1.08 0.820
-#> 3 3 0.327 2.14 1.82
-#> 4 4 0.382 1.2 0.818
-#> 5 5 0.590 1.5 0.910
-#> 6 6 0.527 0.818 0.655
-#> 7 7 0.704 1.27 0.569
-#> 8 8 0.698 1.33 0.635
-#> 9 9 1.01 0.917 0.0951
-#> 10 10 1.38 1 0.384
-#> 11 11 1.12 1.62 0.749
-#> 12 12 1.54 1.4 0.942
-#> 13 13 1.13 0.833 0.298
-#> 14 14 1.49 0.667 0.823
-#> 15 15 2.11 1.09 1.20
+#> 1 1 0.134 1.56 1.42
+#> 2 2 0.201 2.43 2.23
+#> 3 3 0.310 1.3 0.990
+#> 4 4 0.409 1.62 1.22
+#> 5 5 0.546 1.08 0.538
+#> 6 6 0.567 0.929 0.504
+#> 7 7 0.793 1.08 0.290
+#> 8 8 0.840 1.38 0.535
+#> 9 9 0.780 1.22 0.442
+#> 10 10 1.15 1.3 0.452
+#> 11 11 1.16 1.3 0.455
+#> 12 12 1.65 2.33 1.98
+#> 13 13 1.55 1.33 0.881
+#> 14 14 1.56 1.36 0.923
+#> 15 15 2.16 1.27 1.43
los_ra_index_summary_tbl(
.data = data_tbl
@@ -183,16 +183,16 @@ Examples#> # A tibble: 10 × 4
#> los_group los_index rar_index los_ra_var
#> <dbl> <dbl> <dbl> <dbl>
-#> 1 1 0.114 0.833 1.05
-#> 2 2 0.264 1.08 0.820
-#> 3 3 0.327 2.14 1.82
-#> 4 4 0.382 1.2 0.818
-#> 5 5 0.590 1.5 0.910
-#> 6 6 0.527 0.818 0.655
-#> 7 7 0.704 1.27 0.569
-#> 8 8 0.698 1.33 0.635
-#> 9 9 1.01 0.917 0.0951
-#> 10 10 1.67 1 0.673
+#> 1 1 0.134 1.56 1.42
+#> 2 2 0.201 2.43 2.23
+#> 3 3 0.310 1.3 0.990
+#> 4 4 0.409 1.62 1.22
+#> 5 5 0.546 1.08 0.538
+#> 6 6 0.567 0.929 0.504
+#> 7 7 0.793 1.08 0.290
+#> 8 8 0.840 1.38 0.535
+#> 9 9 0.780 1.22 0.442
+#> 10 10 1.72 1.4 1.12
-
@@ -114,19 +114,20 @@ Get the optimal binwidth for a histogram
+Get the optimal binwidth for a histogram
Source:R/optimal_bin_size.R
opt_bin.Rd
Examples .value_col = value , .iters = 100 ) -#> # A tibble: 10 × 1 -#> value -#> <dbl> -#> 1 -3.46 -#> 2 -2.62 -#> 3 -1.78 -#> 4 -0.939 -#> 5 -0.0995 -#> 6 0.740 -#> 7 1.58 -#> 8 2.42 -#> 9 3.26 -#> 10 4.10 +#> # A tibble: 11 × 1 +#> value +#> <dbl> +#> 1 -4.04 +#> 2 -3.29 +#> 3 -2.55 +#> 4 -1.80 +#> 5 -1.05 +#> 6 -0.306 +#> 7 0.441 +#> 8 1.19 +#> 9 1.94 +#> 10 2.68 +#> 11 3.43
-
diff --git a/docs/reference/save_to_excel.html b/docs/reference/save_to_excel.html
index 77e76c6..885956f 100644
--- a/docs/reference/save_to_excel.html
+++ b/docs/reference/save_to_excel.html
@@ -1,9 +1,9 @@
Procedure to Condition Code Mapping file
+Procedure to Condition Code Mapping file
Source:R/data_files.R
px_cc_mapping.Rd
-
diff --git a/docs/reference/service_line_vec.html b/docs/reference/service_line_vec.html
index 66aa0f5..30b2f7b 100644
--- a/docs/reference/service_line_vec.html
+++ b/docs/reference/service_line_vec.html
@@ -1,7 +1,7 @@
Service Line Grouper Augment Function
+Service Line Grouper Augment Function
Source:R/augment-service-line.R
service_line_augment.Rd
-
diff --git a/docs/reference/sql_left.html b/docs/reference/sql_left.html
index ca98c76..01d04df 100644
--- a/docs/reference/sql_left.html
+++ b/docs/reference/sql_left.html
@@ -1,5 +1,5 @@
-Service Line Grouper Vectorized Function
+Service Line Grouper Vectorized Function
Source:R/service-line-vec.R
service_line_vec.Rd
-
diff --git a/docs/reference/tidyeval.html b/docs/reference/tidyeval.html
index d778cc1..21599e3 100644
--- a/docs/reference/tidyeval.html
+++ b/docs/reference/tidyeval.html
@@ -30,7 +30,7 @@
To learn more about tidy eval and how to use these tools, visit
Metaprogramming
-section of Advanced R.">Use SQL RIGHT type functions
+Use SQL RIGHT type functions
Source:R/sql_string_split.R
sql_right.Rd
-
diff --git a/docs/reference/ts_census_los_daily_tbl.html b/docs/reference/ts_census_los_daily_tbl.html
index f02f5b3..e5e6c8c 100644
--- a/docs/reference/ts_census_los_daily_tbl.html
+++ b/docs/reference/ts_census_los_daily_tbl.html
@@ -9,7 +9,7 @@
If you have a record where the .start_date_col is filled in but the corresponding
end_date is null then the end date will be set equal to Sys.Date()
If a record has a start_date that is NA then it will be discarded.
-This function can take a little bit of time to run while the join comparison runs.">Plot ALOS - Average Length of Stay
+Plot ALOS - Average Length of Stay
Source:R/time_series_plots.R
ts_alos_plt.Rd
-
diff --git a/docs/reference/ts_median_excess_plt.html b/docs/reference/ts_median_excess_plt.html
index 8d5344e..b658f34 100644
--- a/docs/reference/ts_median_excess_plt.html
+++ b/docs/reference/ts_median_excess_plt.html
@@ -1,5 +1,5 @@
-Time Series - Census and LOS by Day
+Time Series - Census and LOS by Day
Source:R/ts-census-los-tbl.R
ts_census_los_daily_tbl.Rd
-
diff --git a/docs/reference/ts_plt.html b/docs/reference/ts_plt.html
index 3f547d8..d1a1f93 100644
--- a/docs/reference/ts_plt.html
+++ b/docs/reference/ts_plt.html
@@ -1,9 +1,9 @@
Create a plot showing the excess of the median value
+Create a plot showing the excess of the median value
Source:R/ts_median_excess_plt.R
ts_median_excess_plt.Rd
-
diff --git a/docs/search.json b/docs/search.json
index ac260f2..a21207b 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-[{"path":"https://www.spsanderson.com/healthyR/articles/getting-started.html","id":"libaray-load","dir":"Articles","previous_headings":"","what":"Libaray Load","title":"Getting Started with healthyR","text":"First things first, lets load library:","code":"library(healthyR) library(healthyR.data) library(timetk) library(dplyr) library(purrr)"},{"path":"https://www.spsanderson.com/healthyR/articles/getting-started.html","id":"generate-sample-data","dir":"Articles","previous_headings":"","what":"Generate Sample Data","title":"Getting Started with healthyR","text":"First going take look time series plotting functions. fairly straight forward therefore seem intuitive. going generate random numbers simulate different daily average length stay data. set seed reproducibility.","code":"# Get Length of Stay Data data_tbl <- healthyR_data df_tbl <- data_tbl %>% filter(ip_op_flag == \"I\") %>% select(visit_end_date_time, length_of_stay) %>% summarise_by_time( .date_var = visit_end_date_time , .by = \"day\" , visits = mean(length_of_stay, na.rm = TRUE) ) %>% filter_by_time( .date_var = visit_end_date_time , .start_date = \"2012\" , .end_date = \"2019\" ) %>% set_names(\"Date\",\"Values\")"},{"path":"https://www.spsanderson.com/healthyR/articles/getting-started.html","id":"plot-the-time-series","dir":"Articles","previous_headings":"","what":"Plot the Time Series","title":"Getting Started with healthyR","text":"Now data lets see easy generate ALOS chart: .interactive option set TRUE: can see, function ability return either static plot interactive plot. hood using timetk::plot_time_series function. can find timetk function . end first quick tutorial ts_alos_plt function.","code":"ts_alos_plt( .data = df_tbl , .date_col = Date , .value_col = Values , .by = \"month\" , .interactive = FALSE ) ts_alos_plt( .data = df_tbl , .date_col = Date , .value_col = Values , .by = \"month\" , .interactive = TRUE )"},{"path":"https://www.spsanderson.com/healthyR/articles/kmeans-umap.html","id":"libaray-load","dir":"Articles","previous_headings":"","what":"Libaray Load","title":"Clustering with K-Means and UMAP","text":"First things first, lets load library:","code":"library(healthyR)"},{"path":"https://www.spsanderson.com/healthyR/articles/kmeans-umap.html","id":"information","dir":"Articles","previous_headings":"","what":"Information","title":"Clustering with K-Means and UMAP","text":"K-Means partion algorithm initially designed signal processing. goal partition n observations k clusters n k. unsupervised k-means algorithm loose relationship k-nearest neighbor classifier, popular supervised machine learning technique classification often confused k-means due name. Applying 1-nearest neighbor classifier cluster centers obtained k-means classifies new data existing clusters. aim vignette showcase use healthyR wrapper kmeans function wrapper plot uwot::umap projection function. go entire workflow getting data getting fina UMAP plot.","code":""},{"path":"https://www.spsanderson.com/healthyR/articles/kmeans-umap.html","id":"generate-some-data","dir":"Articles","previous_headings":"","what":"Generate some data","title":"Clustering with K-Means and UMAP","text":"Now data need generate called user item table. use function kmeans_user_item_tbl takes just arguments. purpose user item table aggregate normalize data users items. data generated going look clustering amongst service_lines (user) payer_grouping (item) columns. Lets now create user item table.","code":"library(healthyR.data) library(dplyr) library(broom) library(ggplot2) data_tbl <- healthyR_data %>% filter(ip_op_flag == \"I\") %>% filter(payer_grouping != \"Medicare B\") %>% filter(payer_grouping != \"?\") %>% select(service_line, payer_grouping) %>% mutate(record = 1) %>% as_tibble() data_tbl %>% glimpse() #> Rows: 116,823 #> Columns: 3 #> $ service_line Make a Time Enhanced Tibble
+Make a Time Enhanced Tibble
Source:R/ts_signature_tbl.R
ts_signature_tbl.Rd
- #> 1 1
- #> 1 1