s-news
[Top] [All Lists]

Re: [S] [S-Plus 5.1] Canty's boot library

To: Janusz Kawczak <jkawczak@math.uncc.edu>
Subject: Re: [S] [S-Plus 5.1] Canty's boot library
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Wed, 29 Sep 1999 07:44:57 +0100 (BST)
Cc: S-news@wubios.wustl.edu, canty@discrete.concordia.ca, Anthony.Davison@epfl.ch
In-reply-to: <37F19718.C9877D7B@math.uncc.edu>
Sender: owner-s-news@wubios.wustl.edu
On Wed, 29 Sep 1999, Janusz Kawczak wrote:

> 
> Hi,
> I am running S-Plus 5.1 under Linux, and was trying to use the boot
> library written by Canty (from Davidson & Hinkley book). After executing
> 
> one of the examples from  the help on boot function:
> 
> >ratio <- function(d, w)
>      sum(d$x * w)/sum(d$u * w)
> >boot(city, ratio, R=999, stype="w")
> 
> I get:
> 
> Problem in boot(city, ratio, R = 999, stype = "w"): object "t" must be
> assigned locally before replacement
> 
> When I use the tracebak(), I get:
> 4: eval(action, sys.parent())
> 3: doErrorAction("Problem in boot(city, ratio, R = 999, stype = \"w\"):
> object \"t\" must be assigned locally before replacement",
> 2: boot(city, ratio, R = 999, stype = "w")
> 1:
> Message: Problem in boot(city, ratio, R = 999, stype = "w"): object "t"
> must be assigned locally before replacement
> 
> I cannot indentify the problem.  Any suggestions?
> 

I reported this to Angelo Canty in August 1998.

Near the bottom of boot is the line

        dimnames(t) <- NULL

Remove it.

That was all I found I had to do to get this library running on Splus5.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>