[R] Ass. 3 part 8 - output is correct but submission fails
David Winsemius
dwinsemius at comcast.net
Sun Jan 26 18:58:29 CET 2014
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
More information about the R-help
mailing list