Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Asking for Mopt_maxmin() mlib

    Dear stata users,

    Im trying to run the code for fitting models, but I stuck at this error. When I set the trace on, I found that the error is mopt_maxim() blank as shown in the image. Could you help me to solve this issue? Thank you very much for your time.


  • #2
    Hi Mike,

    I get the following when I ask for that function with -mata which-

    Code:
    . mata mata which Mopt_maxmin
      Mopt_maxmin():  lmataopt
    I don't believe that Mata functions that are not defined by the user (i.e., ones that are loaded automatically from .mlib, .mata, or .ado files) are visible using -mata: mata describe- but can still be found with -mata: mata which-.

    For this function, StataCorp documents it in the following:

    Code:
    view moptimize_stata.mata, adopath asis
    And you can look through it to see if you can find a hint to what's wrong (though it looks like it's a missing argument issue to -merlin_logl_bernoulli- which is presumably called later within the top function).

    - joe
    Joseph Nicholas Luchman, Ph.D., PStatĀ® (American Statistical Association)
    ----
    Research Fellow
    Fors Marsh

    ----
    Version 18.0 MP

    Comment

    Working...
    X