Restructuring Healthcare data [message #7104] |
Mon, 24 August 2015 03:13 |
JREY
Messages: 13 Registered: August 2015
|
Member |
|
|
Hi, everyone. I am examining health care utilization in the Philippines using the data using the NDHS household questionnaire. In the questionnaire the household respondent was asked if there was any member of the household who visited a health facility for consultation/advice or treatment anywhere. For each member who visited a health facility, the reason for consultation and the type of treatment received was asked. I would like to create a dataset where each household member has an information on these health care indicators, but I find it hard to structure the data in order to come up with my desired dataset. Could anyone please help me on this? Thank you.
|
|
|
|
|
|
|
Re: Restructuring Healthcare data [message #8123 is a reply to message #8121] |
Wed, 26 August 2015 06:55 |
Bridgette-DHS
Messages: 3214 Registered: February 2013
|
Senior Member |
|
|
Also from Tom Pillum:
I realized that there is a simpler and more direct way to do the same thing that was described in my previous response. This Stata program will also put the variables sh209, sh210, etc., onto the record for the correct person in the household, but without requiring a merge. The result should be the same.
[Updated on: Wed, 11 November 2015 11:47] Report message to a moderator
|
|
|
|
Re: Restructuring Healthcare data [message #8149 is a reply to message #8131] |
Fri, 28 August 2015 13:38 |
Bridgette-DHS
Messages: 3214 Registered: February 2013
|
Senior Member |
|
|
Another response from Tom Pullum:
Please try the attached program. The main problem is that some of the indexed variables, such as sh203, have indices with a leading 0--for example, 01, 02, 03, rather than 1, 2, 3. Stata has a very powerful rename command, so you need to include " rename *_0* *_* " to get rid of those 0's.
Hope this will work.
|
|
|
|
|
|
|