aresimcn <- function(n,nsims,eps,vc){ chl <- c(); cxbar <- c() for(i in 1:nsims){ x <- rcn(n,eps,vc) chl <- c(chl,wilcox.test(x,conf.int=T)$est) cxbar <- c(cxbar,t.test(x,conf.int=T)$est) } aresimcn <- mses(cxbar,0)/mses(chl,0) return(aresimcn) }