Читать книгу Medical Statistics - David Machin - Страница 38

2.3 Displaying Categorical Data

Оглавление

Two methods of displaying categorical data are a bar chart or a pie chart. Figure 2.2 shows in a bar chart the recruiting centres of 202 patients with foot corns treated in the trial of Farndon et al. (2013). Along the horizontal axis are the different treatment centre categories whilst on the vertical axis is the percentage. Each bar represents the percentage of the total patient population in that category. For example, it can be seen that the percentage of participants who were treated in the Central centre was about 55%.


Figure 2.2 Bar chart showing where 202 patients with corns were treated

(Source: Farndon et al. 2013).

Figure 2.3a shows the same data displayed as a pie chart. One often sees pie charts in the literature. However, generally they are to be avoided as they can be difficult to interpret, particularly when the number of categories becomes greater than five. In addition, unless the percentages in the individual categories are displayed (as here) it can be much more difficult to estimate them from a pie chart than from a bar chart. For both chart types it is important to include the number of observations on which it is based, particularly when comparing more than one chart. Neither of these charts should be displayed in three dimensions (see Figure 2.3b for a three‐dimensional pie chart). Three‐dimensional charts feature in many spreadsheet packages, but are not recommended since they distort the information presented. They make it very difficult to extract the correct information from the figure, and, for example in Figure 2.3b the sectors that appear nearer the reader are over emphasised.


Figure 2.3 Pie chart showing where 202 patients with foot corns were treated

(Source: Farndon et al. 2013).

If the sample is further classified into whether the patient was treated with corn plasters or scalpel then it becomes impossible to present the data as a single pie or bar chart. We could present the data as two separate pie‐charts or bar charts side by side but it is preferably to present the data in one graph with the same scales and axes to make the visual comparisons easier.

In this case we could present the data as a clustered bar chart, as shown in Figure 2.4. This clearly shows that the distribution of the frequency of patients at each treatment centre by randomised treatment group is broadly similar. It is preferable to use the relative frequency scale on the vertical axis rather than the actual counts, particularly when the two groups are of different sizes, although in this example where the groups are of similar size this will not make much difference here.

Figure 2.4 Clustered bar chart showing where 202 patients with foot corns were treated by randomised group

(Source: Farndon et al. 2013).

If you do use the relative frequency scale as we have, then it is recommended good practice to report the actual total sample sizes for each group in the legend. In this way, given the total sample size and relative frequency (from the height of the bars) we can work out the actual numbers treated in each centre.

Medical Statistics

Подняться наверх