Skip to content

Commit

Permalink
cleanup part deux
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewallenbruce committed Nov 5, 2023
1 parent 629f1d4 commit 05088e7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 9 deletions.
10 changes: 5 additions & 5 deletions R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ utils::globalVariables(c(
"y", # <beneficiaries>
"y", # <betos>
"rbcs_major_ind", # <betos>
"hcpcs", # <rbcs_util>
"category", # <rbcs_util>
"subcategory", # <rbcs_util>
"family", # <rbcs_util>
"procedure", # <rbcs_util>
"copy", # <ror>
":=", # <ror>
"lg", # <ror>
Expand Down Expand Up @@ -197,11 +202,6 @@ utils::globalVariables(c(
"address", # <tidyup_service>
"specialty", # <tidyup_service>
"place_of_srvc", # <tidyup_geography>
"hcpcs", # <rbcs_util>
"category", # <rbcs_util>
"subcategory", # <rbcs_util>
"family", # <rbcs_util>
"procedure", # <rbcs_util>
"title", # <cms_update>
"modified", # <cms_update>
"distribution", # <cms_update>
Expand Down
16 changes: 15 additions & 1 deletion man/ndc_lookup.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/open_payments.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/opt_out.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion vignettes/articles/partb-stats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ library(tidyr)
library(dplyr)
library(purrr)
library(furrr)
library(ggplot2)
library(gt)
library(gtExtras)
```
Expand Down Expand Up @@ -53,12 +54,25 @@ plan(sequential)
## Overall Performance

```{r}
ind |>
performance <- ind |>
unnest(performance) |>
mutate(year = as.integer(year)) |>
select(year, tot_hcpcs:.pymt_per_srvc)
performance
```


```{r}
lm.performance <- lm(tot_payment ~ .srvcs_per_bene + tot_benes + .pymt_per_srvc, data = performance)
summary(lm.performance)
```


```{r}
ggplot(performance, aes(x = tot_payment, y = .srvcs_per_bene, fill = year, group = year)) +
geom_point(shape = 21, size = 4, alpha = 0.75) +
theme_minimal()
```


```{r}
Expand Down

0 comments on commit 05088e7

Please sign in to comment.