using svy function to run cross tabs [message #8389] |
Wed, 21 October 2015 16:19 |
pkaburi
Messages: 11 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 |
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.
|
|
|