Vikram Bahure
2011-Dec-20 05:47 UTC
[R] boot.ci: [Error: cannot allocate vector of size 1.5 Gb]
Dear R users, I am getting following error while using boot.ci. I have int.inc function with 20000 values. I am generating CI for the sample estimate. *> med <- function(x,i) median(x[i])* *> b1 <- boot(int.inc,med,2)* *> ci.out <- boot.ci(b1,conf = c(0.95),type = c("bca"))* *Error: cannot allocate vector of size 1.5 Gb* * * It would be very helpful to get some insight on this. Regards Vikram [[alternative HTML version deleted]]
Uwe Ligges
2011-Dec-20 14:03 UTC
[R] boot.ci: [Error: cannot allocate vector of size 1.5 Gb]
On 20.12.2011 06:47, Vikram Bahure wrote:> Dear R users, > > I am getting following error while using boot.ci. I have int.inc function > with 20000 values. I am generating CI for the sample estimate. > > *> med<- function(x,i) median(x[i])* > *> b1<- boot(int.inc,med,2)* > *> ci.out<- boot.ci(b1,conf = c(0.95),type = c("bca"))* > *Error: cannot allocate vector of size 1.5 Gb* > * > * > It would be very helpful to get some insight on this.Which more insight than the one that RAM available to R is not sufficient for such a memory intensive task? Uwe> > Regards > Vikram > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.