search for: per95

Displaying 1 result from an estimated 1 matches for "per95".

Did you mean: per25
2008 Aug 02
1
Memory Problems with a Simple Bootstrap - Part II
I have distilled my bootstrap problem down to this bit of code, which calculates an estimate of the 95th percentile of 7500 random numbers drawn from a standard normal distribution: library(boot) per95 <- function( annual.data, b.index) { sample.data <- annual.data[b.index] return(quantile(sample.data,probs=c(0.95))) } m <- 10000 x <- rnorm(7500,0,1) B <- boot(data=x,statistic=per95,R=m) Error: cannot allocate vector of size 286.1 Mb This was result was observed with R 2.7.1...