I don't know that this is your problem, but I see a potential
scoping issue: It is not obvious to me where Dk is getting n0 and w.
I've solved this kind of problem in the past by declaring n0 and w as
explicit arguments to Dk and then passing them explicitly via ... in
outer. In
Scott -
I agree with Spencer Graves that there's a scoping issue here:
Where does function Dk() pick up the values for n0 and w,
and does it get them from the SAME place when it's called from
inside FindLikelihood() as from outside ?
But more important is this one: All arithmetic on
.
Mountain View, CA 94043
www.nanoplextech.com
-Original Message-
From: Spencer Graves [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 8:13 AM
To: Scott Norton
Cc: [EMAIL PROTECTED]
Subject: Re: [R] outer function problems
I don't know that this is your problem, but I see
On Tue, 28 Oct 2003, Scott Norton wrote:
Thanks Spencer and Tom for your help!
Besides the other errors, I realized last night that I'm making a
fundmental error in my interpretation of the outer function. The following
short code snippet highlights my confusion.
f-function(A,B) {
I'm pulling my hair (and there's not much left!) on this one. Basically I'm
not getting the same result t when I step through the program and evaluate
each element separately than when I use the outer() function in the
FindLikelihood() function below.
Here's the functions:
Dk-