You might try the statmod package which provides nodes and weights for gaussian quadrature.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Xiaofan Cao > Sent: Wednesday, November 08, 2006 12:43 PM > To: r-help@stat.math.ethz.ch > Subject: [R] Numerical Integration > > Hi everyone, > > I'm trying to integrate f(x) over x where f(x) does not have > a close form but only numerical values at certurn knots of x. > Is there a way that I can use any generical R function (such > as integrate) or any package to do so? > > Thanks! I appreciate your time. > > Best Regards, > Martha Cao > > ______________________________________________ > R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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.