knitr::opts_chunk$set(echo = FALSE,
                      warning = FALSE,
                      message = FALSE)


library(profvis)
options(rmarkdown.html_vignette.check_title = FALSE)

This summarize code optimization results in April 2021. All code profiling were based on 0.1% sample data.

1. Standardization

1.1 Membership

Before

data(profile_member_sample12yr_all, package = "medicareR")
attach(member_sample12yr_all)

member_sample12yr_all

After

data(profile_member_sample12yr_by_yr, package = "medicareR")
attach(member_sample12yr)

member_sample12yr

1.2 Professional

Before

data(profile_professional_sample12yr_all, package = "medicareR")
attach(profile_professional_sample12yr_all)

profile_professional_sample12yr_all

After

data(profile_professional_sample12yr_by_year, package = "medicareR")
attach(profile_professional_sample12yr_by_year)

profile_professional_sample12yr_by_year

1.3 Facility claims

Before

data("profile_fac_clm_sample12yr_all", package = "medicareR")
attach(profile_fac_clm_sample12yr_all)

profile_fac_clm_sample12yr_all

After

data("profile_fac_clm_sample12yr_by_yr", package = "medicareR")
attach(profile_fac_clm_sample12yr_by_yr)

profile_fac_clm_sample12yr_by_yr


UMCSTaR/medicareR documentation built on May 11, 2022, 7:31 p.m.