Re: [R] Integration problem: error in invoking an outside function

2010-06-15 Thread David Winsemius
On Jun 15, 2010, at 9:05 AM, Frankvb wrote: Dear all, Currently I am trying to integrate a function which depends on four variables, two of which are given, one is given in the integrate function, so there is one variable to integrate on. The code is as follows: Pmatrix = function(th) {

Re: [R] Integration problem: error in invoking an outside function

2010-06-15 Thread Ravi Varadhan
15, 2010 9:06 AM To: r-help@r-project.org Subject: [R] Integration problem: error in invoking an outside function Dear all, Currently I am trying to integrate a function which depends on four variables, two of which are given, one is given in the integrate function, so there is one variable to

[R] Integration problem: error in invoking an outside function

2010-06-15 Thread Frankvb
Dear all, Currently I am trying to integrate a function which depends on four variables, two of which are given, one is given in the integrate function, so there is one variable to integrate on. The code is as follows: Pmatrix = function(th) { P = matrix(nrow=6, ncol=6, data=0)