Bookmark and Share

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: Issue with 'bsweights'


From   Stas Kolenikov <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Issue with 'bsweights'
Date   Mon, 25 Nov 2013 09:59:22 -0600

-bsweights- is intended to work with the survey data first and
foremost. As I describe in the Stata Journal article supporting the
package, you can specify -nosvy- to run -bsweights- without trying to
pull out the -svy- settings, and treating the data as i.i.d. The
-webuse nhanes2- data comes with -svy- settings glued into the data
set, and -bsweights- is able to pick that information up.

-- Stas Kolenikov, PhD, PStat (ASA, SSC)
-- Senior Survey Statistician, Abt SRBI
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
-- http://stas.kolenikov.name



On Mon, Nov 25, 2013 at 9:54 AM, Owen Gallupe <[email protected]> wrote:
> Please let me know if there is any other information that might help
> in coming up with a solution.
>
> Thanks.
>
> Owen
>
>
> On Mon, Nov 25, 2013 at 2:36 AM, Owen Gallupe <[email protected]> wrote:
>> Hi,
>>
>> I am having an issue using the 'bsweights' command that has me puzzled
>> given the documentation I've read and my own testing. When I try to
>> run the following with my data,
>>
>> bsweights bsw, reps(2000) n(-1) seed(22222)
>>
>> I get an error message:
>>
>> svy is not set
>> r(119);
>>
>> So I set up svyset and then run bsweights again but with the same error message.
>>
>> When I try the exact same command with the nhanes2 data set, it works fine.
>>
>> If anyone could set me straight, I would really appreciate it.
>>
>> Regards,
>>
>> Owen Gallupe
>>
>> p.s., I'm running Stata/SE 12.1 on Windows 7 (64 bit)
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index