Home » Topics » Nutrition and Anthropometry » Missing values for anemia
Re: Missing values for anemia [message #9234 is a reply to message #9188] |
Thu, 25 February 2016 18:15 |
Liz-DHS
Messages: 1516 Registered: February 2013
|
Senior Member |
|
|
Dear User,
A response from one of our experts, Dr. Tom Pullum:
Quote:
You are apparently merging an IR file with an HR file. The HR file has one very long record per household. It is much easier to merge the IR file with the PR file, which has one record per household member, as follows. Open the IR file first, then gen hv000=v000; gen hv001=v001; gen hv002=v002; gen hvidx=v003; sort hv000 hv001 hv002 hvidx; save as temp.dta, replace. Then open the PR file; sort hv000 hv001 hv002 hvidx; merge hv000 hv001 hv002 hvidx using temp.dta.
However, you do not even have to do this. v457 in the IR file is the woman's anemia level. It's not necessary to do ANY merging. For each woman, you can also get the anemia levels of her children (up to 6 children born in the past five years) with hw57_1 through hw57_6. Here the subscripts refer to the woman's children. In the HR file, the subscripts refer to the line number in the household survey.
|
|
|
|
|
Missing values for anemia
By: clarapd on Fri, 19 February 2016 16:36
|
|
|
Re: Missing values for anemia
By: Liz-DHS on Thu, 25 February 2016 18:15
|
|
|
Re: Missing values for anemia
By: clarapd on Fri, 26 February 2016 09:26
|
|
|
Re: Missing values for anemia
By: Liz-DHS on Mon, 29 February 2016 08:38
|
|
|
Re: Missing values for anemia
By: clarapd on Mon, 29 February 2016 09:04
|
|
|
Re: Missing values for anemia
By: Liz-DHS on Fri, 04 March 2016 16:10
|
|
|
Re: Missing values for anemia
By: clarapd on Wed, 09 March 2016 06:42
|
|
|
Re: Missing values for anemia
By: Liz-DHS on Tue, 29 March 2016 16:14
|
|
|
Re: Missing values for anemia
By: clarapd on Wed, 30 March 2016 03:10
|
|
|
Re: Missing values for anemia
By: Liz-DHS on Wed, 30 March 2016 10:53
|
Goto Forum:
Current Time: Mon Dec 23 10:39:16 Coordinated Universal Time 2024
|