The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Child Discipline - Myanmar DHS 2015-2016 (Unit of analysis and files to be used )
Re: Child Discipline - Myanmar DHS 2015-2016 [message #22656 is a reply to message #22647] Sat, 17 April 2021 13:35 Go to previous messageGo to previous message
Nyan Linn is currently offline  Nyan Linn
Messages: 8
Registered: December 2020
Member
Thank you very much, Sir.
Dear Sir, I would like to reproduce the table 17.6 on page 296 of 2015-2016 Myanmar DHS final report.
But, I could not get the exact frequency and percentage for
- "Residence"
- "States/Regions"
- "Wealth quintile".
Could you please check my do file?
Which variable was used as "wealth quintile" in the report? When I tried with hv270 or hv270a, the frequency and percentages are differ from the tables. Could you please mention how to generate the variable "wealth quintile"?
With Deep Respect
Nyan Linn
use "C:\Users\ASUS\Desktop\child violent\Myanmar DHS\STATA\scratch\MMPR71FL.DTA"
ta sh11a
keep if sh11a==1
keep if hv102==1
keep if sh148==hvidx
gen wt=hv005/1000000
replace sh150=0 if sh150==.
replace sh151=0 if sh151==.
replace sh152=0 if sh152==.
replace sh153=0 if sh153==.
replace sh154=0 if sh154==.
replace sh155=0 if sh155==.
replace sh156=0 if sh156==.
replace sh157=0 if sh157==.
replace sh158=0 if sh158==.
replace sh159=0 if sh159==.
replace sh160=0 if sh160==.
replace sh161=0 if sh161==.
gen discipline = 0
replace discipline=1 if sh150==1|sh151==1|sh152==1|sh153==1|sh154==1|sh155==1|sh156= =1|sh157==1|sh158==1|sh159==1|sh160==1
label define dis 0"not use any discipline/missing" 1"number of children be used by discipline"
label values discipline dis
*******************************
gen only_non_violent=.

replace only_non_violent=0 if sh152==1 | sh153==1 | sh155==1 | sh156==1 | sh157==1 | sh158==1 | sh159==1 | sh160==1

replace only_non_violent=1 if sh152==0 & sh153==0 & sh155==0 & sh156==0 & sh157==0 & sh158==0 & sh159==0 & sh160==0

replace only_non_violent=. if sh150==. & sh151==. & sh154==.
tab only_non_violent
*********************************
gen any_non_violent=.
replace any_non_violent=0 if sh150==0 & sh151==0 & sh154==0
replace any_non_violent=1 if sh150==1 | sh151==1 | sh154==1
replace any_non_violent=. if sh150==. & sh151==. & sh154==.
tab any_non_violent
***********************************
tab any_non_violent only_non_violent
replace only_non_violent=0 if any_non_violent==0
tab any_non_violent only_non_violent

label define aaa 0"No" 1"Yes"
label values any_non_violent aaa
label values only_non_violent aaa
**************************************
generate any_psycho=.
replace any_psycho=1 if sh153==1 | sh157==1
replace any_psycho=0 if sh153==0 & sh157==0
replace any_psycho=. if sh153==. & sh157==.
tab any_psycho
label values any_psycho aaa
*******************************
gen any_mild_mod_physical=.
replace any_mild_mod_physical=1 if sh152==1 | sh155==1 | sh156==1 | sh159==1
replace any_mild_mod_physical=0 if sh152==0 & sh155==0 & sh156==0 & sh159==0
replace any_mild_mod_physical=. if sh152==. & sh155==. & sh156==. & sh159==.
label values any_mild_mod_physical aaa
tab any_mild_mod_physical
*********************************
generate any_severe=.
replace any_severe=1 if sh158==1 | sh160==1
replace any_severe=0 if sh158==0 & sh160==0
replace any_severe=. if sh158==. & sh160==.
label values any_severe aaa
tab any_severe
***************************
gen any_physical=.
replace any_physical=1 if sh152==1 | sh155==1 | sh156==1 | sh159==1 | sh158==1 | sh160==1
replace any_physical=0 if sh152==0 & sh155==0 & sh156==0 & sh159==0 & sh158==0 & sh160==0
replace any_physical=. if sh152==. & sh155==. & sh156==. & sh159==. & sh158==. & sh160==.
label values any_physical aaa
tab any_physical

***********************************8
gen any_violent=.
replace any_violent=1 if sh152==1|sh153==1|sh155==1|sh156==1|sh157==1|sh158==1|sh159= =1|sh160==1
replace any_violent=0 if sh152==0 & sh153==0 & sh155==0 & sh156==0 & sh157==0 & sh158==0 & sh159==0 & sh160==0
replace any_violent=. if sh152==. & sh153==. & sh155==. & sh156==. & sh157==. & sh158==. & sh159==. & sh160==.
label values any_violent aaa
tab any_violent
**********

. label variable discipline "Child Discipline Module"

. label variable only_non_violent "use only nonviolent methods"

. label variable any_non_violent "Use ANY nonviolent methods"

. label variable any_psycho "Use ANY psychological aggression"

. label variable any_mild_mod_physical "Use ANY mild to moderate physical punishment"

. label variable any_severe "Use ANY severe physical punishment"

. label variable any_violent "Use ANY Violent methods"

. label variable any_physical "Use ANY physical violent"

tab sh150 [iw=wt]
tab sh151 [iw=wt]
tab sh152 [iw=wt]
tab sh153 [iw=wt]
tab sh154 [iw=wt]
tab sh155 [iw=wt]
tab sh156 [iw=wt]
tab sh157 [iw=wt]
tab sh158 [iw=wt]
tab sh159 [iw=wt]
tab sh160 [iw=wt]
tab sh161 [iw=wt]

tab hv024 only_non_violent [iw=wt], row
tab hv024 any_psycho [iw=wt], row
tab hv024 any_physical [iw=wt], row
tab hv024 any_severe [iw=wt], row
tab hv024 any_violent [iw=wt], row

tab hv025 only_non_violent [iw=wt], row
tab hv025 any_psycho [iw=wt], row
tab hv025 any_physical [iw=wt], row
tab hv025 any_severe [iw=wt], row
tab hv025 any_violent [iw=wt], row

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ANC
Next Topic: Mothers Education on children's health
Goto Forum:
  


Current Time: Fri Jan 3 04:38:19 Coordinated Universal Time 2025