Standard Errors after fmincon using fminunc

6 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by