Statalist


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

Re: st: How to weight datasets?


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: How to weight datasets?
Date   Sat, 30 Aug 2008 22:36:00 -0400

svyset- , not of  -survwgt-

-Steve
On Aug 30, 2008, at 8:40 PM, Steven Samuels wrote:

--
Hagen: Please be more specific. In what ways do you want the data sets to resemble the population--for example: to match the distributions of age, gender, ethnicity? How big are the data sets. Are they themselves probability samples with their own selection weights? Are they samples of the "population" you wish them to resemble? Most important: What is the purpose of the analyses you hope to do? Perhaps weighting is not the best solution.


The program -survwgt- available on SSC will weight samples on multiple dimensions. The -poststrata()- and postweight()- options are useful for creating weights to balance on single factors (e.g. age or age-gender combinations). The document http:// www.abtassociates.com/presentations/raking_survey_data_2_JOS.pdf is essential reading.

In the following message I advised someone how to set up "marginals" for use with -survwgt-: http://www.stata.com/statalist/ archive/2007-02/msg00384.html Perhaps it will start you on your way.


-Steve






On Aug 30, 2008, at 9:24 AM, Hagen von Hermanni wrote:


I have four separate datasets that I would like to weight in order to fit them on a specific population. I know that Stata has commands like pweight or aweight, but how exactly do I use them to create a weighted dataset?
Maybe someone has a do-file to show me or simply write me the needed commands. The Stata- help is no good for me, since I`m not able to use it correctly.

HELP

Thanks a lot
Hagen

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php? mc=sv_ext_mf@gmx

*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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