Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If you have chosen to work with Excel, please run above three models and complete the following tables. Model 1 : Run a regression model
If you have chosen to work with Excel, please run above three models and complete the following tables.
Model : Run a regression model and use being a member of network and find out its impact on hospital cost? Model Model : For the nd model run a regression model and use being a member of network and find out its impact on hospital cost and hospital revenue? Model Model : For the rd model run a regression model and use being a member of network and find out its impact on ratioMedicaredischarge and ratioMedicaiddischarge.
Based on your finding please recommend policies and discuss the impact of being on a network on hospital cost, hospital revenue and out its impact on ratioMedicaredischarge and ratioMedicaiddischarge. Do you recommend keeping membership for a hospital? Why or why not? # You can remove the # from the sink command to keep all log in txt
# sinkC:UMUCweekexercise.txt
# Step : Install package dplyr & load it
# install.packagesdplyr
librarydplyr
# Step : Read your data
# Pl change the location of file
hosp read.csvC:UMUCHMGTHOSPITAL.csv headerT sep
#Step : See the variables' names
names hosp
#step : generate benefit variable
hosp$benefit hosp$totalhosprevenuehosp$totalhospcost
hosp$medicaredischargeratio hosp$totalhospitalmedicaredischarghosp$totalhospitaldischarges
hosp$medicaiddischargeratio hosp$totalhospitalmedicaiddischarghosp$totalhospitaldischarges
#step : generate own as a categorical variable
## Ownership
## nonforprofit
## for profit
## Public
## Other
own factorhosp$own, levels c
#step : Run logit models
# Model
model glmsystemmember ~ own hospitalbeds,familybinomiallink'logit'datahosp
summarymodel
# Model
model glmsystemmember ~ own hospitalbeds totalhosprevenue,familybinomiallink'logit'datahosp
summarymodel
# Model
model glmsystemmember ~ own hospitalbeds totalhosprevenue medicaredischargeratio medicaiddischargeratio,familybinomiallink'logit'datahosp
summarymodel
# sink
model glmsystemmember ~ hospitalbeds,familybinomiallink'logit'datahosp
summarymodel
model glmsystemmember ~ hospitalbeds totalhosprevenue,familybinomiallink'logit'datahosp
summarymodel
model glmsystemmember ~ hospitalbeds totalhosprevenue medicaredischargeratio medicaiddischargeratio,familybinomiallink'logit'datahosp
summarymodel
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started