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: bootstrapping command


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: bootstrapping command
Date   Mon, 22 Nov 2010 14:22:46 +0000 (GMT)

--- On Mon, 22/11/10, Ramon Castano wrote:
> trouble in my version 9.0 with the bootstrapping 
> stata command, which used to work well in earlier
> versions.
> The variable of interest is "realesp" and the statistic I
> want to bootstrap is  "mean"
> I type: sum realesp, det
> then I type: bs "summ realesp, det" "_result(3)", reps(100)
> size(20000) saving(filename.dta)
> And this is what I get from Stata: 
> invalid 'reps' 

That looks like old syntax (even for Stata 9). The following 
works on my version of Stata 9(*):

*---------------- begin example -------------------------
sysuse auto, clear
preserve
keep if !missing(rep78)
bootstrap mean=r(mean), reps(100) : summ rep78, meanonly
restore 
*----------------- end example --------------------------
(For more on examples I sent to the Statalist see: 
http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

(*) For those that wonder why I have Stata 9 on my computer:
I use it to run certification scripts of my programs that I
claim should work under Stata 9

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


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