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
|