I'm not quite familiar with R. Could you recommend some relative material.
Actually, I'm not intend to loop from 1 to 1. I'm just trying to see if it works. It's supposed to be some len>1. I'm trying to solve the following example: there are 3 types of variables(x,w,t), they are not independent and have different distribution. Within each type, there are more than 1 variables. I need to integrate all the variable. joint pdf is like f(x,w,t)=∏_i▒〖f1(wi)f2(ti)〗(∏_j▒〖f3(xj) ∏_j▒〖f4(xj*wi-ti〗)〗) -- View this message in context: http://r.789695.n4.nabble.com/cuhre-usage-multidimensional-integration-tp3873478p3886287.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.