I have a problem when trying to calculate standard errors of estimates from fminunc. My estimation technique is Maximum likelihood Estimation. I've tried two ways as below, both failed:
The Hessian matrix from fminunc results is non-invertible, so I can't get standard error from the Hessian matrix.
So I turned to get standard errors using OPG(outer-product-of-gradient) method. However, the gradient I provided failed to pass derivative-check.
Does anybody know whether there are other ways that I can get standard error? Your help will be appreciated!