This was a lucky week for me in R class. I have been doing some analyses on my own work lately, and as such have been looking at a lot of histograms and boxplots. The assignment was to create some of these exact things on blood pressures and doctors ratings of those.
Blood pressures were given in numbers, but ratings were presented as good/bad or low/high. I don't like working with words in R, it's terrifying, so I changed these to numbers instead. Highs and bads became 1's, while lows and goods became 1's.
Boxplots and histograms provide a simple but powerful way to explore data without delving into statistics too much. It is important to remember to perform these basic procedures even as our datasets become more advanced.
 |
Figure 1. Frequency of hospital visitations for 10 patients. |
 |
Figure 2. Histogram of blood pressure for 10 patients. |
 |
Figure 3. Boxplot of blood pressures assessed by one doctor. 0 is "bad" and 1 is "good" |
 |
Figure 4. Boxplot of blood pressures assessed by a second doctor. 0 is "low" and 1 is "high" |
 |
Figure 5. Boxplot of blood pressures assessed by a third doctor. 0 is "low" and 1 is "high" |
No comments:
Post a Comment