Beyond a general problem with X11, that it sometimes doesn't display
-especially when it is inactive for a while- new windows (like new
terminal, R device, or emacs) and only the restart helps, I found a
problem which might also be especially the X11's problem.
From an apple Terminal window, the following code (which is the first
boot.ci example) works just fine.
data(city)
ratio <- function(d, w)
sum(d$x * w)/sum(d$u * w)
city.boot <- boot(city, ratio, R=999, stype="w",sim="ordinary")
boot.ci(city.boot, conf=c(0.90,0.95),
type=c("norm","basic","perc","bca"))
I get normally the four types of confidenec intervals.
But form apple X11 public Beta 0.3 I get the following error messages,
library(boot)
Attaching package `boot':
The following object(s) are masked _by_ .GlobalEnv :
boot
[1] "odd number of coulumns"
[,1] [,2]
[1,] "95/1.074" "1.908/0.978"
Error in paste("(", ints1[, 2 * (1:n1)], ",", sep = "") :
subscript out of bounds
Did anyone find the same behavior under X11? Any soultions? Or just that
is why it is still beta.
Thanks for any thoughts, suggestions!
Katalin
But form apple X11 public Beta 0.3 I get the following error messages,
library(boot)
Attaching package `boot':
The following object(s) are masked _by_ .GlobalEnv :
boot
This message means that you have something called `boot' in your workspace
that will override the bootstrap function, and is probably causing the
error. In any case, it makes it very hard to diagnose the error.
I don't have any trouble with this example using version 0.2.1 of Apple's
X11 server, and since the example doesn't use any graphics it would be
surprising (though not completely impossible) for X11 to be the problem.
Try the example in a clean R workspace (if you are starting R from the
command line then type
R --vanilla
to start R without loading any previous workspace.
-thomas