top of page

R Programming Journal Module 4 - Wesley Huang

  • Writer: Wesley Huang
    Wesley Huang
  • Feb 8
  • 1 min read

In this assignment, I worked with a small hospital dataset containing patient visit frequency, blood pressure, two doctor assessments, and a final decision about urgency. To explore the blood pressure values, I created a histogram to see how the readings were distributed across the 10 patients.

The histogram shows that most patients fall in the lower to mid blood pressure ranges, while a smaller number of patients have very high blood pressure readings. This suggests the distribution is not evenly spread and is pulled upward by a few high values, which may represent higher risk patients.
The histogram shows that most patients fall in the lower to mid blood pressure ranges, while a smaller number of patients have very high blood pressure readings. This suggests the distribution is not evenly spread and is pulled upward by a few high values, which may represent higher risk patients.

I also created a side by side boxplot to compare blood pressure between patients labeled low priority versus high priority by the final decision. This makes it easier to compare the center and spread of the two groups.

The boxplot shows that the high priority group has a higher median blood pressure and a much larger spread compared to the low priority group. This indicates that patients marked as high priority generally had higher blood pressure readings, and there was more variability in that group. In contrast, the low priority group stayed lower overall and had a tighter range.
The boxplot shows that the high priority group has a higher median blood pressure and a much larger spread compared to the low priority group. This indicates that patients marked as high priority generally had higher blood pressure readings, and there was more variability in that group. In contrast, the low priority group stayed lower overall and had a tighter range.

 
 
 

Comments


bottom of page