The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Other countries » Turkey mother tongue variable
Turkey mother tongue variable [message #8978] Fri, 22 January 2016 08:00 Go to previous message
gocuk7 is currently offline  gocuk7
Messages: 2
Registered: January 2016
Member
Hi,

I hope it won't be a very easy question. In the 2003 Turkish DHS, I use the following data set: TRHR4AFL.DTA.

The variable I am interested is sh57_*. In the file TRHR4AFL.FRW, there is only one variable for sh57, while in the data set there are 8, sh57_1...sh57_8. When I individually run counts, I am able to get the weighted data for Kurdish count 599.


The code is:
generate psu=hv021

generate wgt=hv005/1000000

egen strata = group(hv024 hv025), label
svyset psu [iweight=wgt], strata(strata)

svy: tab sh57_1, count format(%11.1fc) /* mother tongue */
svy: tab sh57_2, count format(%11.1fc)/* mother tongue */
svy: tab sh57_3, count format(%11.1fc)/* mother tongue */
svy: tab sh57_4, count format(%11.1fc)/* mother tongue */
svy: tab sh57_5, count format(%11.1fc)/* mother tongue */
svy: tab sh57_6, count format(%11.1fc)/* mother tongue */
svy: tab sh57_7, count format(%11.1fc) /* mother tongue */
svy: tab sh57_8, count format(%11.1fc)/* mother tongue */

However, if I wanted to compile the data with rowmisscount function or other methods, I cannot reached the 559 number.

egen mother=rowmisscount(sh57_1 sh57_2 sh57_3 sh57_4 sh57_5 sh57_6 sh57_7 sh57_8)
svy: tab mother, count format(%11.1fc)/* mother tongue */

Any idea how to do this?I hope I was clear.
 
Read Message
Read Message
Read Message
Previous Topic: DRC 2007
Next Topic: Pakistan DHS 2012-13 Ethical Approval
Goto Forum:
  


Current Time: Sun Apr 28 02:35:43 Coordinated Universal Time 2024