<html>
<font face="Courier, Courier" size=2>I'm trying to adapt some S-Plus
scripts to run in R (1.2.2, Windows).&nbsp; In one of these scripts, I've
bootstrapped the prediction success rate under the discriminant function
(lda).&nbsp; The bootstrap() functions are proprietary to S-Plus and
there aren't exact equivalents in R.&nbsp; The closest is Canty's library
boot based on the Davidson and Hinkley book.&nbsp; Unfortunately, I
haven't been able to map the commands I used in the bootstrap() function
of S-Plus to the boot() function in the boot library of R (and also
S-Plus).<br><br>
Below is an example of one line from this S-Plus script.&nbsp; The
particular element I'm having trouble mapping to boot() is the <br>
group argument.&nbsp; This makes it pretty straightforward to work with
functions that operate on multiple groups.&nbsp; boot() has a strata
argument, which *seems* like it ought to be the rough equivalent of
group, but its operation is not entirely transparent.&nbsp; Can someone
point me to an example where boot() is used as I've illustrated below
with S-Plus' bootstrap() function?&nbsp; Unless I've missed something,
there isn't an illustration in VR3 or in the help for boot.&nbsp; (There
is a bivariate example, but the particular example doesn't translate well
to something like a discriminant analysis).<br><br>
Thanks for pointers.<br><br>
<br>
boot.lda.success&lt;-bootstrap(apehum, hitratio(apehum[,1],
predict(lda(apehum[,2:11], apehum[,1]))$class)$error, group=apehum[,1],
trace=F, B=250)<br><br>
<br><br>
<br><br>
<br>
</font><x-sigsep><p></x-sigsep>
=====================<br>
Dr. Marc R. Feldesman<br>
Professor and Chairman<br>
Anthropology Department<br>
Portland State University<br>
1721 SW Broadway<br>
Portland, Oregon 97201<br>
email:&nbsp; feldesmanm@pdx.edu<br>
phone:&nbsp; 503-725-3081<br>
fax:&nbsp;&nbsp;&nbsp; 503-725-3905<br>
http://web.pdx.edu/~h1mf<br>
PGP Key Available On Request<br>
======================<br><br>
&quot;Anyway, no drug, not even alcohol, causes the fundamental ills of
society.<br>
If we're looking for the source of our troubles, we shouldn't test
people<br>
for drugs, we should test them for stupidity, ignorance, greed and love
of<br>
power.&quot;&nbsp;&nbsp; P.J. O'Rourke<br><br>
Powered by Optiplochoerus and Windows 2000 (scary isn't it?)<br>
</html>