This assignment used a dataset from a local hospital that recorded information on ten patients. The variables included frequency of hospital visits in the past year, blood pressure measurements, the first doctor’s assessment, the second doctor’s assessment, and the final emergency decision. The data was entered into R as vectors and combined into a data frame. A boxplot and histogram were created to visualize the blood pressure values for the patients.
The histogram showed that most patients had moderate blood pressure readings, while a few had very high values such as 176 and 205. The boxplot highlighted these extreme readings as outliers compared to the rest of the group. The majority of patients fell within a lower to mid-range of blood pressure, but the spread of values showed that there was significant variation across the ten patients.
Patients with higher blood pressure readings were more likely to receive a high final decision for immediate care. When both doctors rated a patient as high risk, the final decision often matched with a high priority level. Patients with lower blood pressure and better initial ratings were more likely to receive a low final decision. The visualizations showed that blood pressure and doctor assessments both influenced how the emergency unit determined the level of care needed.
macauleywilson/r-programming-assignments
Comments
Post a Comment