Announcement

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

  • Log likelihood (not concave) message - melogit /meqrlogit

    Hi,

    I am running in Stata 15 the logistic model with wave fixed effect. As I was previously recommended Statalist I can use both -meqrlogit- and -melogit- and if one one fails to converge, the other often will.

    I have run both models and received in both models for some log likelihood the message that it is not concave:

    Code:
    melogit charity_participation i.generation sex i.income_class i.educ_level happiness char_conf i.marital_status i.religion i.country(S002) || wave(S003):
    Click image for larger version

Name:	экрана 2019-02-05 в 11.56.51.png
Views:	1
Size:	132.1 KB
ID:	1482644




    Code:
    meqrlogit charity_participation i.generation sex i.income_class i.educ_level happiness char_conf i.marital_status i.religion i.country(S002) || wave(S003):
    Click image for larger version

Name:	экрана 2019-02-08 в 14.04.49.png
Views:	1
Size:	102.8 KB
ID:	1482649

    Click image for larger version

Name:	экрана 2019-02-08 в 14.04.58.png
Views:	1
Size:	89.0 KB
ID:	1482650


    Can you advise please if it is a problem and which model is better to use?

    BR,
    Anna
    Last edited by Anna Petrova; 08 Feb 2019, 06:06.

  • #2
    Please don't show results in screenshots. You can show them in code delimiters. Screenshots often don't display properly, and indeed, your first one is barely legible!

    That said, I can sort of squint and see that in the iteration log for melogit, you have one not concave message in the first few iterations. Similar story with meqrlogit. Per Stata's manual on likelihood maximization, this isn't a problem unless you have not concave at the last iteration. If you had that sort of situation, my experience is that Stata won't declare convergence in that situation unless you had changed one of the maximization defaults (specifically, you used the nonrtolerance option, which is generally not recommended).

    Both models look like they converged at a very similar log likelihood value. It's hard to compare coefficients between the models, but I bet they are similar. If you had substantially different results between them, then it would be a problem. Chances are you don't, so the difference is irrelevant, so you could just use melogit so you don't have to explain what the QR decomposition is.
    Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

    When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

    Comment


    • #3
      Weiwen Ng thanks!

      Comment

      Working...
      X