Home » Data » Merging data files » IR and NR files
Re: IR and NR files [message #29326 is a reply to message #29320] |
Thu, 30 May 2024 10:22 |
Bridgette-DHS
Messages: 3199 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS Staff Member, Tom Pullum:
I looked at the IR, KR, and NR files for this survey and I believe the difference you are seeing can be traced to the way children are indexed in those three files.
If you go to the NR file, and enter "tab m13 p32,m" you will see that the antenatal data are provided for live births and stillbirths, and not for miscarriages and induced abortions. In the NR file, the pregnancies are indexed by pidx. If you enter "tab m13 pidx,m" you will see that there are some NA values of m13 for each value of pidx, corresponding with those outcomes that were miscarriages or induced abortions.
The KR file, as in earlier surveys, is limited to live births, the outcomes with p32=1. The births are indexed with bidx. bidx and pidx do not match, because bidx skips over the pregnancies with p32=2, 3, or 4.
The IR file includes the p variables, with subscripts _01, _02, etc. It also includes the b variables, with subscripts _01, _02, etc., It includes the KR variables with subscripts _1, _2, etc. The KR and b indexes will match each other (that is _1 and _01 refer to the same live birth) but they will not correspond to the indexes for the p variables.
If you go to the IR file and enter "lookfor history" you will find many variables labeled "index to pregnancy history" or "index to birth history". You can use them to match specific births or pregnancies or KR variables. However, it will be much easier if you just use the NR and KR files. The NR file includes the KR variables. The NR file does not include the b variables, but the p variables are the same as the b variables, except more general.
Hope this helps.
|
|
|
Goto Forum:
Current Time: Sun Nov 24 16:42:15 Coordinated Universal Time 2024
|