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/