(thanks for the suggestion Maarten - your example did work for me)
I now realize that the problem occurs when using BRR and bootstrap weights.
The data set which I am using does not have strata or PSU info. I also
tried it using nhanes2brr and I was not able to obtain the SEs or CIs.
I have tried to use both of the following commands and some variants:
. svy: tab var1 var2, row se ci
. svy brr: tab var1 var2, row se ci
Neither method has produced the standard errors or confidence intervals. I
am able to get the estimates by using the proportion command and subpop,
but the output is not as clear as that produced by the tab command.
------------------------------------------------------------------------------------------------------------------------------------
Date: Wed, 17 Jan 2007 16:46:07 +0100
From: "Maarten Buis" <[email protected]>
Subject: st: RE: problem with svy:tab
- --- Alan Diener wrote:
> When I try to do two-way tabulations using the svy commands, I am not
able
> to get the standard errors and confidence intervals to appear in the
> output. I have used the command line below as specified in the Survey
Data
> manual but it doesn't appear to be working properly. Any suggestions?
>
> . svy: tab var1 var2, row se ci
Weird. I ran the following two commands and it did produce standard errors:
webuse nhanes2 /*load an example dataset*/
svy: tab sex heartatk, row se ci
Do these two commands work in your Stata?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/