Workshop 3 Assignment: Burkina Faso febrile diseases data
Abdominal pain distribution of patients per sex group
Work primarily done by group member 1, Giulia Rathmes
The dataset we chose provides information on symptoms of febrile diseases in Burkina faso.
<- read_csv(here("week_03/data/01_febrile_diseases_burkina_faso.csv")) burkina_faso
I chose to look at the difference in the distribution of abdominal pain between male and female patients.
The plot below shows the distribution of abdominal pain for each sex:
And the table below shows similar information:
<- tabyl(burkina_faso, `abd_pain`, sexe)
freq_table <- flextable(freq_table)
flex <- set_caption(flex, caption = "Abdominal pain distribution of febrile disease patients")
flex_with_caption flex_with_caption
abd_pain | 2 | female |
no | 206 | 310 |
yes | 179 | 219 |
For both sexes, most patients did not have abdominal pain. 219 female patients had abdominal pain, whereas 179 male patients had abdominal pain.
Areas of improvement
- The male category is coded as 2 and does not show the label “male”.
- The abdominal pain group labels are too horizontally compressed.
- I do not yet know how to change the variable names, so I left in the
abd_pain
name in the table and plot. - The table should have the “yes” row first and then the “no” row, but I do not know how to change the two.
Work primarily done by group member 2, Christopher Chew
The dataset we chose provides data from an accuracy study comparing gold standard culture techniques with a haemocytometry based algorithm (IMS), procalcitonin (PCT) and C-reactive protein (CRP). Data were collected from approximately 900 patients aged between 3 months and 100 years presenting with an acute febrile illness.
<- read_csv(here("week_03/data/01_febrile_diseases_burkina_faso.csv")) col_diagnosis
I chose to look at the distribution of IMS diagnoses by sex.
The plot below shows the age distributions for each sex:
And the table below shows similar information:
<- tabyl(col_diagnosis, `ims_final_full_classification`, sexe)
freq_table <- flextable(freq_table)
flex <- set_caption(flex, caption = "Distribution of IMS diagnoses by sex")
flex_with_caption flex_with_caption
ims_final_full_classification | 2 | female |
Bacteria | 119 | 169 |
Bacteria-malaria | 25 | 26 |
Malaria | 25 | 44 |
Suspected bacterial | 13 | 17 |
Suspected malaria | 8 | 8 |
Suspected viral | 56 | 79 |
unknown | 90 | 131 |
Viral | 49 | 55 |
For both sexes, the diagnosis with the most number of people was Bacteria. In men, there were 119 patients with this diagnosis, and in women there were 169 .
Areas of improvement
- The age group labels are too small.
- Not sure how to change the variable name categories, so I left ‘2’ to represent ‘males’ in the table and plot.