Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: GSAMPLE R3300


From   "Lieke Boonen (SiRM)" <Lieke.Boonen@sirm.nl>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: GSAMPLE R3300
Date   Thu, 6 Sep 2012 16:28:58 +0200

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index