The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weighted Chi2 (STATA)
Weighted Chi2 (STATA) [message #14370] Thu, 29 March 2018 04:06 Go to next message
Sai San Moon Lu is currently offline  Sai San Moon Lu
Messages: 5
Registered: January 2018
Location: Umea, Sweden
Member
Hello,

I have a problem with running Chi2 considering weights in STATA.

I am using 2015-16 MDHS,Myanmar (br.file)and running chi2 for v106(education) and b5(child death) considering weighting.

I have already done svy set (generate wgt = v005/1000000 svyset [pw=wgt], psu(v021)strata(v023))as recommended.

However, it shows error when I used chi2 testing (weighted)..

The command that I used is svy: tab b5 v106, chi2 col .I also tried that -tab b5 v106, chi2 col [iweight=wgt]- but to no avail.
How can I run weighted chi2 test? Pls help me..

Thanks in advance
Sai San Moon Lu

[Updated on: Thu, 29 March 2018 04:08]

Report message to a moderator

Re: Weighted Chi2 (STATA) [message #14371 is a reply to message #14370] Thu, 29 March 2018 04:14 Go to previous messageGo to next message
schoumaker is currently offline  schoumaker
Messages: 66
Registered: May 2013
Location: Belgium
Senior Member
try pears instead of chi2.



svy: tab b5 v106, pears col


Bruno


Bruno Schoumaker
Centre for Demographic Research
Université catholique de Louvain

[Updated on: Thu, 29 March 2018 04:16]

Report message to a moderator

Re: Weighted Chi2 (STATA) [message #14372 is a reply to message #14371] Thu, 29 March 2018 07:10 Go to previous message
Sai San Moon Lu is currently offline  Sai San Moon Lu
Messages: 5
Registered: January 2018
Location: Umea, Sweden
Member
Thank a lot Burno.It works now..
Previous Topic: Correct Way to Do Sample Weighting for Cross-Sectional Pooled Data from Kenya
Next Topic: Variable for weighting
Goto Forum:
  


Current Time: Wed Dec 11 19:42:46 Coordinated Universal Time 2024