numerical intergation
found a solution: download the rmutil package from : http://popgen0146uns50.unimaas.nl/~jlindsey/rcode.html for those that are interested. note that only works for two dimensions! / allan (ranges was incorrect previously: should be:-2<x<0 4<y<10)
Clark Allan wrote:
i solved the problem: adapt(2, lo=c(2,4), up=c(0,10)) is there any package that allows one to have infinite limits?? when integrating over more than one variable? Clark Allan wrote:
how does one numerically intergate the following:
A=function(x,y)
{
xy
}
over the range: 2<x<0 4<y<10
say.
ie how would one set up the integrate function?
i forgot!
------------------------------------------------------------------------
______________________________________________ R-help at 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