rankhospital.R is finished and looks correct. I'm getting seeming meaningful results out of it.