Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If you have decided to use RStudio: Model 1 Run a logit model and use being a member of network and find out its impact
If you have decided to use RStudio:
Model
Run a logit model and use being a member of network and find out its impact on hospital ownership and hospital beds? Model
Model
Now, include hospital income and report the Coeff.? Model
Model
Now, include the ratio of ratioMedicaredischarge and ratioMedicaiddischarge in your model? And keep all variables you used for models & and discuss your findings? Do you recommend keeping membership for a hospital? Why or why not? Model
Based on your finding please recommend policies to improve hospital performance in FP NFP hospitals, please make sure to use the final model for your recommendation. # 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