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
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
RE: st: R: bootstrap
Date
Thu, 15 Jul 2010 23:22:33 +0200
<>
Sam can also omit the -rclass- declaration and simply have -bs- pick up the results left behind by -summ-:
***********
cap pr drop juan
webuse lbw, clear
prog juan
tempvar diff m0hat m1hat
logit low age lwt if smoke, nolog
predict `m1hat'
logit low age lwt if !smoke, nolog
predict `m0hat'
gen `diff'=`m1hat'-`m0hat'
su `diff', mean
end
bs taohat=r(mean), reps(100) nodrop: juan
***********
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maarten buis
Sent: Donnerstag, 15. Juli 2010 22:53
To: [email protected]
Subject: RE: st: R: bootstrap
--- On Thu, 15/7/10, sun samn wrote:
> it works well, but get this error message at the end:
> insufficient observations to compute bootstrap standard
> errors.
use the -nodrop- option, as in:
bs taohat=r(taohat), nodrop :juan
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/