[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: st: How to create weight variable

 From "fran brittan" To statalist@hsphsun2.harvard.edu Subject Re: st: How to create weight variable Date Tue, 4 Nov 2008 16:56:48 +0000

Thank you so much, Maarten and Ángel!

Maarten, it was very helpful to be pointed to the term post stratification.
Unfortunately, I have Stata 8, and the poststratify add-on doesn't
seem to be supported in that version.

Ángel, I am not exactly clear about the part where you suggest
calculating psweights after pweighting the sample. Part of my question
related to confirming if my thinking on how to pweight the sample was
correct.

I only have one file (the sample), as well as descriptions of the
population from census data, but obviously not the census dataset
itself. So the only thing I thought I can do was to calculate weights
according to this formula:

weight(stratum x) = % population (stratum x) / % sample (stratum x)

I then followed this with

svyset[pweight=educweight], strata[education]

and followed this with svylogit.

My question at this stage is: is what I did statistically acceptable?

The results of my regressions are similar to the unweighted results,
except a few variables which drop or gain significance.

Thank you very much once again!

Fran

On Tue, Nov 4, 2008 at 12:19 PM, Ángel Rodríguez Laso
<angelrlaso@gmail.com> wrote:
> I have taken a look to the information provided by -findit post
> stratification- and found that Stata has options in -svy- (poststrata,
> postweight) that probably do automatically what Fran Brittan was
> proposing; I've also found a package (poststratify) that even merge
> cells with 0 counts (where the formula that Fran is implicitly using
> gives 0). The problem with these two resources is that they take away
> control of the weighting process by the researcher. What I would do is
> calculating the poststratification weights myself, using the formula:
>
> psweight of stratatum x=(population in stratum x * total sample
> size)/(total population * sample size in stratum x)
>
> after pweighting the sample.
>
> If there are cells with 0 sample size or some psweights are
> disconected from the rest, the offending strata should be merged with
> similar ones.
>
>
> HTH
>
> Angel Rodriguez-Laso
>
>
>
> 2008/11/3 Maarten buis <maartenbuis@yahoo.co.uk>:
>> --- fran brittan <franbrittan@googlemail.com> wrote:
>>> I have a dataset from a survey that over-sampled highly educated
>>> people. I'd like to weight it so that the data is closer to the
>>> values in the true population, which I have from census data.
>>
>> The term you are looking for is post stratification, see:
>> -findit post stratification-
>>
>> Hope this helps,
>> Maarten
>>
>> -----------------------------------------
>> Maarten L. Buis
>> Department of Social Research Methodology
>> Vrije Universiteit Amsterdam
>> Boelelaan 1081
>> 1081 HV Amsterdam
>> The Netherlands
>>
>> visiting address:
>> Buitenveldertselaan 3 (Metropolitan), room N515
>>
>> +31 20 5986715
>>
>> http://home.fsw.vu.nl/m.buis/
>> -----------------------------------------
>>
>>
>>
>> *
>> *   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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index