underweight status according to child's living arrangements [message #27209] |
Fri, 30 June 2023 03:04 ![Go to next message Go to next message](/theme/default/images/down.png) |
Manoj1992
Messages: 4 Registered: June 2023 Location: India
|
Member |
|
|
I got different results form NFHS-5 national report after run the following syntax for calculating Underweight among the children's as per their living arrangements, I used the PR filr here
gen Child_liv_arr=.
replace Child_liv_arr=1 if hv111==1 & hv113==1 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=2 if hv111==1 & hv113==0 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=3 if hv111==0 & hv113==1 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=4 if hv111==0 & hv113==0 & (hv102 == 1 & hv105 < 18)
label define Child_liv_arr 1"Living both Parents" 2"Living with Mother (not father)" 3"Living with Father (not mother)" 4"Living with neither parent", replace
label values Child_liv_arr Child_liv_arr
tab Child_liv_arr underweight [iw=wt], r nof
what is wrong with my syntex?
[Updated on: Fri, 30 June 2023 03:05] Report message to a moderator
|
|
|
Re: underweight status according to child's living arrangements [message #27231 is a reply to message #27209] |
Mon, 03 July 2023 11:20 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
Janet-DHS
Messages: 810 Registered: April 2022
|
Senior Member |
|
|
Following is a response from DHS staff member, Tom Pullum:
I will paste below the codes that I have used for coresidence status of children. I have not tested them on the NFHS's and note that it is often difficult to match the NFHS's.
You are using hv111 and hv113, which are survival status; I prefer to use hv112 and hv114, which are line numbers of the mother and father, respectively.
You can have problems if a parent is listed in the household but is not de jure. As a general rule, household structure is based on de jure residence. In the lines below, I have already done a recode so that hv114r, for example, is the same as hv114 but is recoded to 99 if the father is in the household but is not de jure. This can be a difficult step.
You are checking for the child's de jure status but not the parents' de jure status. As I recall I use the code below after restricting to children who are de jure and age<18, which you do within the recode.
Our GitHub programs include Stata code to construct the table on parental survival and children's living arrangements. You can check it. We can't go into more detail on the forum.
gen cores_type=.
replace cores_type=1 if (hv112r>0 & hv112r<99) & (hv114r>0 & hv114r<99)
replace cores_type=2 if (hv112r>0 & hv112r<99) & (hv114r==0 | hv114r==99)
replace cores_type=3 if (hv112r==0 | hv112r==99) & (hv114r>0 & hv114r<99)
replace cores_type=4 if (hv112r==0 | hv112r==99) & (hv114r==0 | hv114r==99)
label define cores_type 1 "Living with both parents" 2 "With mother, not father" 3 "With father, not mother" 4 "Living with neither parent"
|
|
|
Re: underweight status according to child's living arrangements [message #27234 is a reply to message #27209] |
Tue, 04 July 2023 05:24 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
Manoj1992
Messages: 4 Registered: June 2023 Location: India
|
Member |
|
|
Thanks for the reply.
Now we can match the frequencies and total sample with NFHS national report of India.
We used your following syntax for the computation of "Child's living arrangement"-
gen cores_type=.
replace cores_type=1 if (hv112>0 & hv112<99) & (hv114>0 & hv114<99)
replace cores_type=2 if (hv112>0 & hv112<99) & (hv114==0 | hv114==99)
replace cores_type=3 if (hv112==0 | hv112==99) & (hv114>0 & hv114<99)
replace cores_type=4 if (hv112==0 | hv112==99) & (hv114==0 | hv114==99)
label define cores_type 1 "Living with both parents" 2 "With mother, not father" 3 "With father, not mother" 4 "Living with neither parent"
|
|
|