The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » Son Preference and Infertility
Son Preference [message #14848 is a reply to message #11206] Wed, 09 May 2018 08:38 Go to previous message
v7tamrakar@gmail.com is currently offline  v7tamrakar@gmail.com
Messages: 8
Registered: January 2018
Location: India
Member

Dear Sir,
I am intrested to calculate son preference in India.
Here are my codes but i the frequency is not matched with the published report.

* son preference
*look for ideal
*ideal no of children
*ideal no of girls
*ideal no of boys
*ideal no children either or sex

ta v629
drop if v618==96
drop if v628==96
drop if v629==96
gen nopref=.
replace nopref=1 if v629==0
replace nopref=2 if v629!=0
ta nopref
lab var nopref "no gender preference"
lab val nopref nopref
lab define nopref 1"pref" 2"no prefer"

* br v218 v627 v628
gen id_boy=v628
lab var id_boy "ideal no. of boys"
gen id_girl=v629
lab var id_girl
lab var id_girl "Ideal no. of girls"
gen gf=.
replace gf=1 if id_boy==id_girl
replace gf=2 if id_boy>id_girl
replace gf=3 if id_boy<id_girl
replace gf=4 if v629!=0
label var gf "gender preference"
label define gf 1"BP" 2"SP" 3"GP" 4"NP"
label value gf gf


ta gf v013,col nofreq
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Colombia 2010- Revising unmet need for contraception
Next Topic: About Binary logistic regression Analysis
Goto Forum:
  


Current Time: Sun Nov 24 06:02:07 Coordinated Universal Time 2024