STATISTIQUE2
STATISTIQUE2
STATISTIQUE2
MF
20/12/2022
#importation des librairie
library(foreign)
library(haven)
library(dplyr)
##
## Attachement du package : 'dplyr'
library(questionr)
library(knitr)
library(skimr)
library(ggplot2)
library(ggalt)
library(labelled)
library(tidyverse)
## ── Attaching packages
## ───────────────────────────────────────
## tidyverse 1.3.2 ──
library(gtsummary)
Characteristic N = 15,044
Had diarrhea recently
0 11,590 (85%)
1 2,031 (15%)
Sex of child
1 7,647 (51%)
2 7,397 (49%)
Child’s age in months
0 769 (11%)
1 722 (11%)
Characteristic N = 15,044
2 1,394 (20%)
3 1,361 (20%)
4 1,339 (20%)
5 1,252 (18%)
Received MEASLES
0 3,825 (28%)
1 9,845 (72%)
Highest educational level
0 12,545 (83%)
1 1,684 (11%)
2 810 (5.4%)
RECODE of nivo_vie (Wealth index)
1 6,120 (41%)
2 3,298 (22%)
3 5,626 (37%)
Source of drinking water
1 11,280 (76%)
2 3,610 (24%)
Type of toilet facility
1 3,796 (25%)
2 11,098 (75%)
Main floor material
1 8,621 (58%)
2 6,271 (42%)
Region 7.0 (4.0, 10.0)
Type of place of residence
1 3,243 (22%)
2 11,801 (78%)
freq(a$region)
## n % val%
## [1] Boucle de Mouhoun 1352 9.0 9.0
## [2] Cascades 937 6.2 6.2
## [3] Centre 890 5.9 5.9
## [4] Centre-Est 1152 7.7 7.7
## [5] Centre-Nord 1122 7.5 7.5
## [6] Centre-Ouest 1335 8.9 8.9
## [7] Centre-Sud 946 6.3 6.3
## [8] Est 1532 10.2 10.2
## [9] Hauts Basins 1229 8.2 8.2
## [10] Nord 1189 7.9 7.9
## [11] Plateau Central 1019 6.8 6.8
## [12] Sahel 1260 8.4 8.4
## [13] Sud-Ouest 1081 7.2 7.2
table(a$region)
##
## 1 2 3 4 5 6 7 8 9 10 11 12 13
## 1352 937 890 1152 1122 1335 946 1532 1229 1189 1019 1260 1081
skim(a)
Data summary
Name a
Number of rows 15044
Number of columns 21
_______________________
Column type frequency:
numeric 21
________________________
Group variables None
##
## 0 1 2
## 12545 1684 810
freq(a$ageM)
## n % val%
## [1] 15-19 673 4.5 4.5
## [2] 20-24 3550 23.6 23.6
## [3] 25-29 3962 26.3 26.3
## [4] 30-34 3285 21.8 21.8
## [5] 35-39 2130 14.2 14.2
## [6] 40-44 1127 7.5 7.5
## [7] 45-49 317 2.1 2.1
freq(a$Diarrhee)
## n % val%
## [0] N'a pas fait de diarrhée 11590 77.0 85.1
## [1] A fait la diarrhée 2031 13.5 14.9
## NA 1423 9.5 NA
#Représentation graphique
#diarrhée
barplot(table(a$Diarrhee),main = "Diarrhé",col = c("blue","pink"),xlab =
"Résultas",ylab = "Effectifs",space = 1)
#acces à l'eau potable
barplot(table(a$Eaupotable),main = "Accès à l'eau potable",col =
c("yellow","chocolate"),xlab = "Résultas",ylab = "Effectifs",space = 1)
#facilité d'acces aux toilettes
pie(table(a$toilette),labels = c("Acces à l'assainissement","N'a pas acces Ã
l'assainissement"),main = "Facilitées d'accès aux
toilettes",xlab="Résultas",ylab="Effectifs",col = c("red","blue"))
Overall, N =
Characteristic 0, N = 11,590 1, N = 2,031 13,621 p-value
Sex of child 0.5
1 5,846 (85%) 1,041 (15%) 6,887 (100%)
2 5,744 (85%) 990 (15%) 6,734 (100%)
Child’s age in months <0.001
0 683 (89%) 86 (11%) 769 (100%)
1 566 (78%) 156 (22%) 722 (100%)
2 1,044 (75%) 347 (25%) 1,391 (100%)
3 1,097 (81%) 263 (19%) 1,360 (100%)
4 1,197 (90%) 140 (10%) 1,337 (100%)
5 1,176 (94%) 73 (5.8%) 1,249 (100%)
Received MEASLES 0.8
0 3,240 (85%) 565 (15%) 3,805 (100%)
1 8,306 (85%) 1,464 (15%) 9,770 (100%)
Highest educational level 0.004
0 9,648 (86%) 1,634 (14%) 11,282 (100%)
1 1,293 (82%) 276 (18%) 1,569 (100%)
2 645 (84%) 120 (16%) 765 (100%)
RECODE of nivo_vie 0.010
(Wealth index)
1 4,651 (86%) 771 (14%) 5,422 (100%)
2 2,567 (86%) 422 (14%) 2,989 (100%)
3 4,372 (84%) 838 (16%) 5,210 (100%)
Source of drinking water >0.9
1 8,755 (85%) 1,536 (15%) 10,291 (100%)
2 2,717 (85%) 475 (15%) 3,192 (100%)
Overall, N =
Characteristic 0, N = 11,590 1, N = 2,031 13,621 p-value
Type of toilet facility 0.2
1 2,984 (84%) 551 (16%) 3,535 (100%)
2 8,492 (85%) 1,460 (15%) 9,952 (100%)
Main floor material 0.036
1 6,564 (86%) 1,100 (14%) 7,664 (100%)
2 4,910 (84%) 911 (16%) 5,821 (100%)
Region 7.0 (4.0, 7.0 (4.0, 7.0 (4.0, 10.0) <0.001
10.0) 10.0)
Type of place of residence 0.4
1 2,557 (85%) 466 (15%) 3,023 (100%)
2 9,033 (85%) 1,565 (15%) 10,598 (100%)
#Geaphique correspondant au diristribution conditionnelles
#diarrhée&Région