1 Load Packages

library(readxl)

2 Introduction

Care One Hospital is a mid-size (approximately 350 bed) teaching hospital that is connected with a medical school at a major university. It has been a recognized leader in providing quality care and recently achieved magnet status. Care One Hospital is a not for profit county hospital, providing care to anyone in need regardless of their ability to pay. They have an emergency room connected with their hospital, several floors for general inpatient care, and several departments of specialty care.

The administrators at Care One hospital have recently become concerned about the uptick in the length of stay of patients at their hospital. After doing a bit of investigation into this problem, several providers at Care One Hospital have noted that the time taken to receive an ordered X-Ray is excessively long. Care One Hospital has pulled 5 months of data from the years 2016-2017. The data has been de-identified, that is patients, providers, and radiology technicians have been assigned a unique identification number.

Insert inline LaTex between dollar signs, e.g. \(\mu\). A great online equation editor for LaTex may be found at CodeCogs (https://latex.codecogs.com/eqneditor/editor.php)

3 Complete R Code

It is a good idea to include this at the end of every RMarkdown document

df<-read.csv("https://raw.githubusercontent.com/tmatis12/datafiles/refs/heads/main/RadDat_CareOne.csv")
head(df)
df2<-data.frame(df$PatientAge,df$Priority)
colname(df2)<-c("PatientAge","Priority")
head(df2)
df2$PatientAge<-as.numeric(df2$PatientAge)
df2$Priority<-as.factor(df2$Priority)
str(df2)
summary(df2$PatientAge)
boxplot(df2$PatientAge)