[R] repeat takes along time

JPM jpmmeister at gmail.com
Tue Oct 23 16:37:22 CEST 2012


Hi 

I want help for "repeat" because it takes a long time

repeat{
for (i in 1:n){
probb[i]=sum(Wc[z[,j]>=yb[i]])
}
deltab[,b]=rbinom(n,1,probb)
if(length(which(is.na(deltab[,b])==T))==0){break}
}

This code works but takes much computation time.

Anyone could help me to find a solution to take a shor time.

Thanks

Jorge



--
View this message in context: http://r.789695.n4.nabble.com/repeat-takes-along-time-tp4647160.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list