tstats and pvalues using fmincon

2 次查看(过去 30 天)
Maria445
Maria445 2017-11-7
I used fmincon to solve a MLE problem. I thus found the estimated coefficients, but I'd like to also have a tstat and p-value of each estimated parameter.
So, I used
sqrt(diag(inv(hessian)))
(where "hessian" is an output of fmincon) to get the standard errors of each estimated parameter.
Now, to get the t-stats, I simply divided my estimated coefficients by their own SE. However, sometimes the sign of the estimated parameter is negative, but the SE is positive, so the tstat turns negative and the p-value is consequently very high. Should I take the absolute value of the tstat?
Am I doing something wrong?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Smoothing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by