The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Merging SPA datasets- Nepal SPA 2015
Re: Merging SPA datasets- Nepal SPA 2015 [message #14060 is a reply to message #14056] Thu, 08 February 2018 09:43 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3061
Registered: February 2013
Senior Member
Here is another response from Wenjuan:

Yes, you can collapse multiple variables at a time, just add them all in the command. For example, if you need to collapse x1, x2, x3 at a time, do this following:

collapse (mean) per_x1=x1 per_x2=x2 per_x3=x3 [pw=provwt], by(facil)

Hope this works.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Declaring my Data Survey Data
Next Topic: Women's decision making power
Goto Forum:
  


Current Time: Thu May 16 14:19:27 Coordinated Universal Time 2024