Dear Statalist members,
Thanks to the helpful advice of some members, I was able to write a MATA program to maximize my own likelihood function which contains a tri-variate Normal CDF (using GHK2 mata-built-in function). However, I keep having error messages that the variance used by the GHK2 function is not definite-positive. Please find below component that the function GHK2 is calculating.
In fact, the variance matrix is V and it contains 4 different parameters to be estimated. The program seems to work well, except this issue with the variance V.
Can someone please advise me on what I need to do to overcome such an issue or get around it ?
Thank you very much,
Khalid WAZIRI.
Thanks to the helpful advice of some members, I was able to write a MATA program to maximize my own likelihood function which contains a tri-variate Normal CDF (using GHK2 mata-built-in function). However, I keep having error messages that the variance used by the GHK2 function is not definite-positive. Please find below component that the function GHK2 is calculating.
In fact, the variance matrix is V and it contains 4 different parameters to be estimated. The program seems to work well, except this issue with the variance V.
Can someone please advise me on what I need to do to overcome such an issue or get around it ?
Thank you very much,
Khalid WAZIRI.
Comment