[19341] in s-news-athena

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Prof Brian D Ripley)
Wed Sep 29 02:53:38 1999

Date: Wed, 29 Sep 1999 07:44:57 +0100 (BST)
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
To: Janusz Kawczak <jkawczak@math.uncc.edu>
Cc: S-news@wubios.wustl.edu, canty@discrete.concordia.ca,
        Anthony.Davison@epfl.ch
In-Reply-To: <37F19718.C9877D7B@math.uncc.edu>
Message-Id: <Pine.GSO.4.05.9909290737410.28880-100000@auk.stats>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


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

home help back first fref pref prev next nref lref last post