[R] Problems with Mac OS X Beta 3 display?

Katalin Csillery csillery at selway.umt.edu
Fri Apr 4 23:58:50 CEST 2003


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

> 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"))
[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



More information about the R-help mailing list