knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
An R data package contains state-year-month level Medicaid birth procedures fees, collected by Diane Alexander for the paper Does Physician Compensation Affect Procedure Choice and Patient Health? Evidence from Medicaid C-section Use.
# install.package("devtools") devtools::install_github("jjchern/csfee")
library(dplyr) csfee::csfee library(ggplot2) csfee::csfee %>% filter(usps == "AR") %>% ggplot(data = ., aes(x = zoo::as.Date(yearmon), y = fee, colour = cpt)) + geom_line() + scale_x_date(labels = scales::date_format("%Y-%m"))
To further explore the data, check out the shiny app.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.