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

RE: st: boostrap with stata

From   "Scott Merryman" <>
To   <>
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''

sysuse auto,clear

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

It is best not to send messages in html. From the Statalist FAQ

"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:

It is full of junk like this:



*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index