Have you taken a look at the provided introductory materials? type help.start() to get "An Introduction to R" which I believe is provided as a part of every pre-packaged version of R so it's most likely already on your machine.
Read that and then we can sort through how to correctly implement your function. Michael On Sat, Oct 8, 2011 at 7:28 PM, sevenfrost <linshuan...@gmail.com> wrote: > > 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. > ______________________________________________ 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.