The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Rotav Vaccine and nutrition
Re: Rotav Vaccine and nutrition [message #27865 is a reply to message #27862] Sat, 14 October 2023 06:25 Go to previous messageGo to previous message
backclac is currently offline  backclac
Messages: 25
Registered: August 2023
Member
Thank you for the response.
I thought my project should focus only on children under 5 years old who had diarrhoea but I understand you. It should be a Kind of "case" and "control" group.

By standardization or uniformity; I meant using the same target group that had diarrhoea for calculating my indicators. After determining those who had diarrhoea and those who did not.

However, I will use both populations in the calculation as advised.

I am just wondering about the effect of this indicator variable "ch_diar==1" in my syntax below, adopted from CH_DIA.R. on github.

My understanding is to generate only children who answered yes to "Diarrhea in the 2 weeks before the survey" and were exclusively breastfed or breastfeeding. This will be the same for estimating other indicators.

Please how do I submit the cross-tabulation generated from my R syntax for verification? I believe it will help me explain my confusion better.

Example


# //Diarrhea symptoms

```{r}
cgkr <- cgkr %>%
mutate(ch_diar =
case_when(
(h11==1 | h11==2) & b5==1 ~ 1,
b5==1 ~ 0 )) %>%
set_value_labels(ch_diar = c("Yes" = 1, "No"=0)) %>%
set_variable_labels(ch_diar = "Diarrhea in the 2 weeks before the survey")

```
#//# //Diarrhea treatment
```{r}
cgkr <- cgkr %>%
mutate(ch_diar_care =
case_when(
ch_diar==1 &
(h12a == 1 | h12b == 1 | h12c == 1 | h12d == 1 | h12e == 1 | h12f == 1 |
h12g == 1 | h12h == 1 | h12i == 1 | h12j == 1 | h12k == 1 | h12l == 1 |
h12m == 1 | h12n == 1 | h12o == 1 | h12p == 1 | h12q == 1 | h12r == 1 |
h12s == 1 | h12u == 1 | h12v == 1 | h12w == 1 | h12x == 1 ) ~ 1 ,
ch_diar==1 ~ 0)) %>%
set_value_labels(ch_diar_care = c("Yes" = 1, "No"=0)) %>%
set_variable_labels(ch_diar_care = "Advice or treatment sought for diarrhea")

```

## ch_diar==1 & nt_ebf: "Diarrhea in the 2 weeks before the survey" and were/are exclusively breastfed/ breastfeeding???
```{r}
cgkr <- cgkr %>%
mutate(nt_ebf =
case_when(ch_diar==1 &
age<6 & nt_bf_status==1 ~ 1 ,
age<6 & nt_bf_status!=1 ~ 0,ch_diar==1 ~ 0)) %>%
set_value_labels(nt_ebf = c("Yes" = 1, "No"=0 )) %>%
set_variable_labels(nt_ebf = "Exclusively breastfed - last-born under 6 months")
```

I am grateful for your guidance.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Childhood obesity
Next Topic: Overweight to under 5 children
Goto Forum:
  


Current Time: Tue Sep 10 01:41:07 Coordinated Universal Time 2024