Standard Errors after fmincon using fminunc
Ältere Kommentare anzeigen
Hi,
I am running a MLE using fmincon, however I am not sure how to calculate standard errors of the estimated parameters. It has been mentioned that the hessian given by fmincon is inaccurate and we should rather use Hessian from fminunc.
So I am currently following the following steps -
1) Running fmincon to get parameter estimates
2) If estimated parameters do not lie on the bounds then proceed to step 3
3) Use fminunc to get the correct Hessian matrix (I use appropriate initial values, so that my parameter estimates are close to the ones estimated in Step-1)
4) USe err = sqrt(diag(inv(HESSIAN))) to get standard errors for parameters estimated in Step-1
Please let me know if I am following the steps correctly.
Regards, Prachi
Antworten (0)
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!