Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: boostrap with stata


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: boostrap with stata
Date   Thu, 18 Aug 2005 15:43:22 -0500

program myvar, rclass
	syntax varlist
	tokenize `varlist'
	qui sum `1'
	local sd1 = r(sd)
	qui sum `2'
	local sd2 = r(sd)
	return scalar ratio = `=`sd1'/`sd2''
end

sysuse auto,clear

bootstrap "myvar gear head" r(ratio) ,nowarn


It is best not to send messages in html. From the Statalist FAQ
(http://www.stata.com/support/faqs/res/statalist.html)

"We ask you not to post formatted messages or attachments. In fact,
Statalist software may trap these formatted messages or attachments without
sending an error message to you. Please make sure that your mailer is set to
"Plain Text" for outgoing messages (or the equivalent for your mailer); that
is, do not send HTML, Rich Text, VCards, winmail.dat files, other
attachments, or anything other than Plain Text."


Take a look at your archived message at:

http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.0508
/date/article-619.html


It is full of junk like this:

d2l0aCBzdGF0YQC1CQEFgAMADgAAANUHCAASAA4ABAARAAQAHQEBIIADAA4AAADVBwgAEgAOAAQA
EQAEAB0BAQmAAQAhAAAANDlFRjYyNzg3Njc2M0U0REJFQkY2NDQzMUMxNjJEMkUAQQcBA5AGAJgc
AAA3AAAAAwA2AAAAAABAADkAQYMWQB+kxQEeAD0AAQAAAAUAAABSRTogAAAAAAIBRwABAAAANwAA
AGM9dXM7YT0gO3A9QnJvd24gVW5pdmVyc2l0eTtsPU1BSUwxLTA1MDgxODE4MDQxN1otMTAyOAAA
HgBJAAEAAAAyAAAAUmU6IHN0OiBib29zdHJhcCB3aXRoIHN0YXRhIChlbGVtZW50YXJ5IHF1ZXN0


Scott



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index