Standard Errors after fmincon using fminunc

조회 수: 11 (최근 30일)
Prachi  Singh
Prachi Singh 2016년 5월 29일
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