Displaying 1 result from an estimated 1 matches for "catch2".
Did you mean:
catch
2002 Feb 05
2
passing parameters in optim()
Hi all,
I am using optim() to get estimate for parameter 'a' which will minimize
the output of lprob.catch(a) and I got an error message:
> optim(2,lprob.catch(x, freq,1, 0.5,0.5, a,- 0.7, 1, -0.7,0.1,
1,0.2,2,1,data.sf.mont))
Error in catch2.fun(k, f1, f2, a, b, A, B, R, n0, av, index.n) :
Object "a" not found
Why wasn't the initial value of a=2 passed to catch2.fun() which was
called by lprob.catch()?
Thank you for your time.
Nancy
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...