The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » weighting tabulations for 2 way tables
weighting tabulations for 2 way tables [message #16845] Fri, 08 March 2019 04:02 Go to next message
sekera2006@yahoo.co.uk is currently offline  sekera2006@yahoo.co.uk
Messages: 3
Registered: March 2019
Member
Hi DHS Team,


I am analysing DHS data on ITN use. Is it possible to weight a command like "Tab X Y, col" so that I can have weighted frequencies. I am failing as the result from this command is different from the result of "tab y,[iweight=wgt] col" but I need the result for the two way table.


Regina
Re: weighting tabulations for 2 way tables [message #16942 is a reply to message #16845] Thu, 14 March 2019 08:55 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 1621
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

You should be able to use iweight for two-way tables, but the weight specification goes BEFORE the comma. Try this: "tab x y [iweight=wgt], col".
Re: weighting tabulations for 2 way tables [message #16998 is a reply to message #16942] Fri, 15 March 2019 03:48 Go to previous messageGo to next message
sekera2006@yahoo.co.uk is currently offline  sekera2006@yahoo.co.uk
Messages: 3
Registered: March 2019
Member
Thanks Tom and Bridgette,

Should I weigh the data on each command or if i have used suvyset command to weigh the whole data set then its ok i dont need to continously weigh the commands.


Regina


P/S this is my forst time using DHS data and without any orientation. i am finding the way on my own hence these questions. i hope you will bear with me, but I am enjoying using the datasets.
Re: weighting tabulations for 2 way tables [message #17008 is a reply to message #16998] Fri, 15 March 2019 06:39 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 1621
Registered: February 2013
Senior Member
Please search the forum for posts on weighting DHS data.
Previous Topic: Pooled data analysis from 25 countries
Next Topic: How to Weight Data in R
Goto Forum:
  


Current Time: Fri May 24 19:50:56 Eastern Daylight Time 2019