Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: GSAMPLE R3300
From
Lucas <[email protected]>
To
[email protected]
Subject
Re: st: GSAMPLE R3300
Date
Thu, 6 Sep 2012 08:03:11 -0700
I've never used gsample, but it sounds like if you re-scale the
weights so that they sum to 1 everything should work. The relative
weights would therefore remain the same, the only difference would be
the sum, which, I agree, should be irrelevant to the sampling program.
On Thu, Sep 6, 2012 at 7:28 AM, Lieke Boonen (SiRM)
<[email protected]> wrote:
> Dear StataUsers
>
> We try to take a sample from our population, without replacement. we have several subgroeps with a high sampling weight. However with the gsample command it gives an error because for these cases the w_i*n /sum(w) is lager than 1. We thought the program looked at the relation between the weights and that this should not be a problem. Does anyone recognize this problem and is there a solution for this problem?
>
> many thanks,
> Lieke Boonen
>
> command: gsample 30000, [aweight = pop_weight], wor
> error: mm_upswor(): 3300 22140 cases have w_i*n/sum(w)>1
> mm_sample(): - function returned error
> <istmt>: - function returned error
>
> *
> * 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/