Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Weighted Tables


From   Richard Goldstein <[email protected]>
To   [email protected]
Subject   Re: st: Weighted Tables
Date   Thu, 23 Feb 2006 11:51:37 -0500

look at the -svytab- command

Rich

David Lublin wrote:
Hello,

I am using a dataset (the European Social Survey) where it is important to weight the data appropriately in order to get the correct results. This dataset includes a weight which is the "normed inverse of the inclusion probabilities" according to the codebook. This weight is labelled "dweight" (though it appears to be of the pweight type as STATA defines weight types.)

In using STATA, when I type the following:

. tab prtvtch lnghoma [pw=dweight]
pweight not allowed
r(101);

pweight is not allowed. By the way, the variables in this example are: prtvtch (party voted for in Switzerland); and lnghoma (language spoken at home). Again, "dweight" is the variable name of the weight I would like to use.

Is there a way to get STATA to do the equivalent of the pweight command for simple descriptive crosstabs so the results come out weighted correctly?

Many thanks for any help.

Best,
David

David Lublin
Associate Professor
Department of Government
School of Public Affairs
American University
4400 Massachusetts Ave., N.W.
Washington, D.C. 20016
http://www.american.edu/dlublin/index.html
*
* 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/



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