The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » R DHS aggregation by Indigenous Identity in Guatemala (Aggregate health statisitics by indigenous group)
Re: R DHS aggregation by Indigenous Identity in Guatemala [message #24084 is a reply to message #24063] Mon, 21 February 2022 08:37 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3079
Registered: February 2013
Senior Member
Following is a response from DHS Senior Sampling Specialist, Mahmoud Elkasabi:


You can try the following function to group the variables into one variable (tribalg).

GUBR71 <- GUBR71 %>% 
               mutate(tribalg = group_indices(., setid, s114))
 
Read Message
Read Message
Previous Topic: alternative to exporting with xlsx
Next Topic: Respondent's sex NFHS-5
Goto Forum:
  


Current Time: Wed Jun 12 10:29:50 Coordinated Universal Time 2024