The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » using svy command and getting out p-values
Re: using svy command and getting out p-values [message #11988 is a reply to message #11983] Thu, 16 March 2017 04:56 Go to previous messageGo to previous message
Mlue
Messages: 92
Registered: February 2017
Location: North West
Senior Member
I think this is supposed to give you the P-values... But, try this...



svy: tab v013 v751 if gender== "men", percent format(%4.1f) missing row // Percentages

svy: tab v013 v751 if gender== "men", count format(%4.0f) missing // Counts

** ================================================================== **

svy: tab v013 v751 if gender== "women", percent format(%4.1f) missing row

svy: tab v013 v751 if gender== "women", count format(%4.0f) missing



Now, check your output... the P-value will be the P under your output table...

Example:


Pearson:
Uncorrected chi2(6) = 14.9190
Design-based F(5.65, 1797.69) = 1.8115 P = 0.0979

So, here the P-value is P=0.0979... Please let me know if it works
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Specification of Stata 'gllamm' command
Next Topic: trend analysis with svy comand
Goto Forum:
  


Current Time: Sat Apr 27 11:31:58 Coordinated Universal Time 2024