Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: One-way tables with survey data

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: One-way tables with survey data
Date   Mon, 13 Jun 2005 23:04:58 +0100

Not tested, but some dodge such as 

gen data = 1 
label def data 1 "svy is fun!" 
label val data data 

and using that as one axis might help. 

[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Steven A.
> Harvey
> Sent: 13 June 2005 22:49
> To: [email protected]
> Subject: st: One-way tables with survey data
> am working with a survey dataset and need to produce frequency 
> distributions for a number of dichotomous variables.  I have 
> defined the 
> dataset as survey data using the standard commands 
> (Intercooled Stata v. 8.2):
> svyset [pweight=pesomef]
> The svytab command seems only to work with 2-say tables and 
> the regular tab 
> (tabulate, table, etc.) command produces the same result 
> whether or not I 
> define the data as survey data.  I've read through the svytab command 
> documentation several times as well as the documentation for 
> table/tabulate 
> commands and on Stata weights.
> tab varname [pw=pesomef]
> returns an error message that pweights are not allowed.
> Surely I'm missing something, but I can't find it.
> Could someone please help me with the appropriate syntax to produce a 
> weighted one-way table for these variables?

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index