Re: [R] Adapt function

2009-10-08 Thread Ben Bolker
Doran, Harold wrote: > > I am trying to use the adapt function in the package adapt. To make sure > I am using it correctly, I am trying a toy example that should yield a > result of 2/3. > > Suppose the function is f(x,y) = x*y^2 and I want to integrate over f as > > Int_0^1 Int_0^2 x*y^2 dx

Re: [R] Adapt function

2009-10-08 Thread Ravi Varadhan
nal Message - From: "Doran, Harold" Date: Thursday, October 8, 2009 1:14 pm Subject: [R] Adapt function To: r-help@r-project.org > I am trying to use the adapt function in the package adapt. To make sure > I am using it correctly, I am trying a toy example that should yiel

[R] Adapt function

2009-10-08 Thread Doran, Harold
I am trying to use the adapt function in the package adapt. To make sure I am using it correctly, I am trying a toy example that should yield a result of 2/3. Suppose the function is f(x,y) = x*y^2 and I want to integrate over f as Int_0^1 Int_0^2 x*y^2 dxdy Where the limits of integration for y