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
|