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: R: bootstrap


From   sun samn <[email protected]>
To   <[email protected]>
Subject   RE: st: R: bootstrap
Date   Fri, 16 Jul 2010 02:53:21 +0800

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: [email protected]
> To: [email protected]
> CC: [email protected]
> 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: [email protected] [mailto:[email protected]] Per conto di sun samn
> Inviato: giovedì 15 luglio 2010 5.26
> A: [email protected]
> 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/


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