The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » using svy function to run cross tabs
using svy function to run cross tabs [message #8389] Wed, 21 October 2015 16:19 Go to next message
pkaburi is currently offline  pkaburi
Messages: 7
Registered: February 2014
Location: Nairobi
Member
I am using KDHS 2008 data. I want to do a ttest for v012 by v761. when i run the following command svy: ttest v012 if v761<=3, over(v761) , i get the following response.

ttest is not supported by svy with vce(linearized.

what should i do?
Re: using svy function to run cross tabs [message #8403 is a reply to message #8389] Fri, 23 October 2015 17:07 Go to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member


One option would be to run OLS ("reg") with dummy variables for the 3 categories of v761 you want (no constant). Then you could use the "test" commands to test the equality of the groups (in whatever pair-wise or all-at-once way you wanted).

That would account for all of the survey design as long as you used the "svy" prefix before the regression. I think that should work.
Previous Topic: WEIGHT SAMPLING REPRESENTATIVITY
Next Topic: Computing Education Indicators using STATA
Goto Forum:
  


Current Time: Thu Mar 28 19:18:39 Coordinated Universal Time 2024