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.

______________________________________________
R-help@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.

Reply via email to