I doubt this has anything to do with the way you've specified your -svy-
variables.
If the error is "too few vars", you have probably attempted a univariate
tabulation. You can't do that with -svytab-, as clearly indicated in the
help file. Instead create a constant like:
gen dum = 1
and use it as the second variable (e.g., svytab x dum)
If the error is "too many values", then the variable you are trying to
tabulate has too many values to make into a reasonably-sized table. You are
probably trying to tabulate a continuous variable or a string variable with
a lot of different responses. The same will happen if you try -tabulate-.
The solution is to reduce the number of unique values.
Regards,
Lee
Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
[email protected]
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Wednesday, October 29, 2003 10:29 AM
> To: [email protected]
> Subject: st: SVy commands
>
>
> I am using a dataset where I need to use svy commands.
> I typed the folln and this is what I get:
>
> . svyset, psu(psu)
> psu is psu
>
> . svyset, strata(urbrur)
> strata is urbrur
> psu is psu
>
> . svydes
>
> pweight: <none>
> Strata: urbrur
> PSU: psu
> #Obs per PSU
> Strata ----------------------------
> urbrur #PSUs #Obs min mean max
> -------- -------- -------- -------- -------- --------
> 1 33 15240 71 461.8 2324
> 2 11 8757 98 796.1 2080
> -------- -------- -------- -------- -------- --------
> 2 44 23997 71 545.4 2324
>
> Then when I try and use svytab commands, it says too few vars
> or too many values. I am going wrong someplace.
>
>
> *
> * 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/
>
*
* 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/