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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: R: bootstrap


From   Stas Kolenikov <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: R: bootstrap
Date   Thu, 15 Jul 2010 16:41:36 -0500

You would want to check whether anything meaningful at all is returned
by your command. At the face value, it looks OK, but who knows how it
would interact with your data.

It looks like you are doing some sort of difference in predictions
work that -margins- can be used for. You would need to run your model
with full interaction with -rhc- variable, whatever it is, and then
figure out what exactly out of 111 specifications that -margins-
support is the one that you need. No need for bootstrap, there's a
need to RTFM :))

On Thu, Jul 15, 2010 at 1:53 PM, sun samn <shwshang@hotmail.com> wrote:
>
> Sorry for my last email. Here is the new one! thanks!
> hello folks,
>
>
>  I am doing bootstrap now; here is the code:
>
> use data // the variables are from this data set.
>
> program juan, rclass
>
>  capture drop  diff m1hat m0hat
>
>  logit  death sex race income cat1 cat2 ninsclas age if  rhc
>  predict m1hat
>  logit  death sex race income cat1 cat2 ninsclas age if  ~rhc
>  predict m0hat
>  gen diff=m1hat-m0hat
>  sum diff
>  return  scalar taohat=r(mean)
>
>  *drop  m1hat m0hat diff
>  end
>
> bs taohat=r(taohat):juan
>
>
>
> it works well, but get this error message at the end: insufficient observations to compute bootstrap standard errors.
>
> Could anyone tell what it is going there?
> thanks,
>
> sam
>
>
>
>
> ----------------------------------------
>> From: carlo.lazzaro@tiscalinet.it
>> To: statalist@hsphsun2.harvard.edu
>> CC: shwshang@hotmail.com
>> Subject: st: R: bootstrap
>> Date: Thu, 15 Jul 2010 07:27:20 +0200
>>
>> Please Sam,
>> let the list know what you typed and the error message you received.
>> Otherwise, as Stas pointed out, no one can help you with your Stata code.
>>
>> Kind Regards,
>> Carlo
>>
>> -----Messaggio originale-----
>> Da: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di sun samn
>> Inviato: giovedì 15 luglio 2010 5.26
>> A: statalist@hsphsun2.harvard.edu
>> Oggetto: st: bootstrap
>>
>>
>>
>>
>>
>> hello folks,
>> �
>>
>> �� I am doing bootstrap now; it works well, but get this error message at the end: insufficient observations to compute bootstrap standard errors.
>>
>> � Could anyone tell what it is going there?
>> thanks,
>>
>> sam
>>
>>
>>
>> _________________________________________________________________
>> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
>> https://signup.live.com/signup.aspx?id=60969
>>
>> *
>> * 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/
>
> _________________________________________________________________
> Hotmail: Trusted email with powerful SPAM protection.
> https://signup.live.com/signup.aspx?id=60969
>
> *
> *   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/
>



-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

*
*   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