F. Keshavarz
2014-Jan-26 06:19 UTC
[R] Ass. 3 part 8 - output is correct but submission fails
I verify my output with the csv file but I get an error in my submission. I am not sure I have the requirements understood. ex: rankall("Heart attack",4) gives me the following for AZ (this is a section of my output) FLAGSTAFF MEDICAL CENTER AZ SUMMIT HEALTHCARE REGIONAL MEDICAL CENTER AZ The data from the csv for the first best rates for the state of AZ are as follows. Hospital NameStateLower Mortality Estimate - Hospital 30-Day Death (Mortality) Rates from Heart AttackMAYO CLINIC HOSPITALAZ9.4CARONDELET HEART AND VASCULAR INSTITUTEAZ9.5LA PAZ REGIONAL HOSPITALAZ10.4BANNER HEART HOSPITALAZ10.4FLAGSTAFF MEDICAL CENTERAZ10.5SUMMIT HEALTHCARE REGIONAL MEDICAL CENTERAZ10.5 My understanding is that the rate 10.4 is counted once as the third lowest rate although we have two records; therefore the 4th lowest rate will be 10.5 for the FLAGSTAFF MEDICAL CENTER and SUMMIT HEALTHCARE REGIONAL MEDICAL CENTER. Is my understanding correct? [[alternative HTML version deleted]]
David Winsemius
2014-Jan-26 17:58 UTC
[R] Ass. 3 part 8 - output is correct but submission fails
Please STOP sending homework questions to R-help! -- david On Jan 25, 2014, at 10:19 PM, F. Keshavarz wrote:> I verify my output with the csv file but I get an error in my submission. I > am not sure I have the requirements understood. > > > ex: rankall("Heart attack",4) gives me the following for AZ (this is a > section of my output) > > > > FLAGSTAFF MEDICAL CENTER AZ > > SUMMIT HEALTHCARE REGIONAL MEDICAL CENTER AZ > > > > > The data from the csv for the first best rates for the state of AZ are as > follows. > > > > > Hospital NameStateLower Mortality Estimate - Hospital 30-Day Death > (Mortality) Rates from Heart AttackMAYO CLINIC HOSPITALAZ9.4CARONDELET > HEART AND VASCULAR INSTITUTEAZ9.5LA PAZ REGIONAL HOSPITALAZ10.4BANNER HEART > HOSPITALAZ10.4FLAGSTAFF MEDICAL CENTERAZ10.5SUMMIT HEALTHCARE REGIONAL > MEDICAL CENTERAZ10.5 > > > > My understanding is that the rate 10.4 is counted once as the third lowest > rate although we have two records; therefore the 4th lowest rate will be > 10.5 for the FLAGSTAFF MEDICAL CENTER and SUMMIT HEALTHCARE REGIONAL > MEDICAL CENTER. > > Is my understanding correct? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.David Winsemius Alameda, CA, USA
Sarah Goslee
2014-Jan-26 18:00 UTC
[R] Ass. 3 part 8 - output is correct but submission fails
This is not the correct list for your questions on your homework. You need the list for your class, NOT the worldwide R-help list. Sarah On Sun, Jan 26, 2014 at 1:19 AM, F. Keshavarz <fkeshca at gmail.com> wrote:> I verify my output with the csv file but I get an error in my submission. I > am not sure I have the requirements understood. > > > ex: rankall("Heart attack",4) gives me the following for AZ (this is a > section of my output) > > > > FLAGSTAFF MEDICAL CENTER AZ > > SUMMIT HEALTHCARE REGIONAL MEDICAL CENTER AZ > > > > > The data from the csv for the first best rates for the state of AZ are as > follows. > > > > > Hospital NameStateLower Mortality Estimate - Hospital 30-Day Death > (Mortality) Rates from Heart AttackMAYO CLINIC HOSPITALAZ9.4CARONDELET > HEART AND VASCULAR INSTITUTEAZ9.5LA PAZ REGIONAL HOSPITALAZ10.4BANNER HEART > HOSPITALAZ10.4FLAGSTAFF MEDICAL CENTERAZ10.5SUMMIT HEALTHCARE REGIONAL > MEDICAL CENTERAZ10.5 > > > > My understanding is that the rate 10.4 is counted once as the third lowest > rate although we have two records; therefore the 4th lowest rate will be > 10.5 for the FLAGSTAFF MEDICAL CENTER and SUMMIT HEALTHCARE REGIONAL > MEDICAL CENTER. > > Is my understanding correct? >