Preliminary report due: 11:59pm, Tuesday, February 9
You MUST submit both your .Rmd and .pdf files to the course site on Gradescope here: https://www.gradescope.com/courses/224715/assignments. Do NOT create a zipped folder with the two documents but instead, upload them as two separate documents. Also, be sure to knit to pdf and NOT html; ask the TA about knitting to pdf if you cannot figure it out. Be sure to submit under the right assignment entry. Finally, when submitting your files, please select the corresponding pages for each exercise.
You will analyze this data across two labs. This first lab is an individual lab and each student must submit a separate preliminary report by the due date. In the next lab, you will work within your teams and submit one final report by that due date.
We will consider data from the Centers for Medicare and Medicaid Services on hospital costs and profit from the 2014 fiscal year. Our interest is in examining variability of net hospital income across states.
One primary item of interest is the ranking of states by net income of hospitals.
It is important to control for the potential influence of hospital ownership (in the variable called control) and of the number of beds (a proxy for hospital size). The ownership categories include Voluntary Nonprofit-Church, Voluntary Nonprofit-Other, Proprietary-Individual, Proprietary-Corporation, Proprietary-Partnership, Proprietary-Other, Governmental-Federal, Governmental-City-County, Governmental-County, Governmental-State, Governmental-Hospital District, Governmental-City, and Governmental-Other.
For this lab, ignore potential effects of number of beds and ownership of the hospital. Develop and fit a random effects anova model for netincome
(your response variable) using state
as your grouping variable. Obtain preliminary results on the rankings of the states.
There will be a page limit on your final report next week but there is NO page limit for this preliminary report. Your preliminary report should include the following.
DO NOT INCLUDE R CODE OR OUTPUT IN YOUR REPORTS. All R outputs should be converted to nicely formatted tables. Feel free to use R packages such as kable, xtable, stargazer, etc.