Question
1.Suppose we want to compare the length of hospital stay for patients with the same diagnosis at two different hospitals. The results are shown below.
1.Suppose we want to compare the length of hospital stay for patients with the same diagnosis at two different hospitals. The results are shown below.
First hospital: 21, 10, 32, 60, 8, 44, 29, 5, 13, 26, 33
Second hospital: 86, 27, 10, 68, 87, 76, 125, 60, 35, 73, 96, 44, 238
a.Use Stata to carry out a nonparametric procedure for testing the hypothesis that lengths of stay are comparable in the two hospitals. Need to provide both Stata code and output.
stata code on the homework answer was ranksum LOS, by (hospital)
However, how do I set up the data in STATA?
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