Borrar filtros
Borrar filtros

tstats and pvalues using fmincon

1 visualización (últimos 30 días)
Maria445
Maria445 el 7 de Nov. de 2017
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?

Respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by