s-news
[Top] [All Lists]

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

To: S-news@wubios.wustl.edu
Subject: [S] [S-Plus 5.1] Canty's boot library
From: Janusz Kawczak <jkawczak@math.uncc.edu>
Date: Wed, 29 Sep 1999 00:35:37 -0400
Organization: UNC at Charlotte
Sender: owner-s-news@wubios.wustl.edu
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?

Janusz.

--
** Janusz Kawczak                                                       **
** UNC at Charlotte, Department of Mathematics, Room 350F               **
** Charlotte, NC, 28223-0001, U.S.A.                                    **
** Tel.: (704) 547-2566 (W) (704) 921-0273 (H) Fax.: (704) 510-6415     **



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