help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about the function 'fmins'


From: Tracy Feldman
Subject: question about the function 'fmins'
Date: Tue, 30 May 2006 08:03:49 -0700 (PDT)

To whom it may concern:
 
I recently downloaded Octave (I believe it is the most recent version) onto a windows machine (2000? I am not sure, sorry), and am starting to convert Matlab files (that had worked correctly) into Octave files.  I am running into problems with the search algorithm 'fmins' (I had previously used 'fminsearch' in Matlab, and I believe this is the appropriate alternative in Octave?). 
 
Specifically, I wish to minimize a likelihood function, and I wish fmins to return *both* the Maximum likelihood estimate (it is negative, so it is actually a minimum) and a vector with the best fit parameters to the model I am fitting (in this case, a logistic equation, binomially distributed).
 
I tried doing it this way:
 
[BestFitParametersVector, MaximumLikelihoodEstimate] = fmins(@LikelihoodFunction, InitialParametersVector, [], [], TrialsVector, SuccessesVector, Density, LowerBoundsVector, UpperBoundsVector);
 
But the program did not accept two elements in left side of the equation, specifying what the function returns.  Is there a way to get the function to return both of the things I want it to return?   I am not sure how best to define these "returned" variables in the Likelihood function itself (if this is necessary), or to specify that the function return these variables?  
 
I would appreciate any ideas you might have on this.  Please let me know if you need more information from me (or if more code might help).  If possible, please respond directly to address@hidden, as I am not subscribed to the help list.  Thank you in advance.
 
Sincerely,
 
Tracy S. Feldman

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]