Announcement

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

  • error after running lclogitml

    Dear forum members:

    I am trying to run the lclogit command by Pacifico and Yoo (2012) and facing problem running it.
    I started with a basic conditional model which produced significant coefficients. Then I tried the "lclogit" command on the same model specification for 2 and 3 classes, both of which worked fine. But after lclogit when I used "lclogitml" I got the following error:

    "(error occurred in ML computation)
    (use trace option and check correctness of initial model)
    equation p2_1 not found"

    I tried using a lot of different model specifications and none worked past the error message.

    Then I used the following:

    use http://fmwww.bc.edu/repec/bocode/t/traindata.dta, clear lclogit y price contract local wknown tod seasonal, id(pid) gr(gid) ncl(3) lclogitml, iterate(10) And surprisingly I got the same error message as before. Since I know that the code works with this specific dataset, I am confused about what is causing the error. (I have already installed lclogitml and gllamm). Any suggestion/help would be greatly appreciated. Thanks Anwesha

  • #2
    http://www.statalist.org/forums/help#references

    13. How should I give literature references?

    Please give precise literature references. The literature familiar to you will be not be familiar to all members of Statalist. Do not refer to publications with just author and date, as in Sue, Grabbit, and Runne (1989).

    References should be in a form that you would expect in an academic publication or technical document. Good practice is to give a web link accessible to all or alternatively full author name(s), date, paper title, journal title, and volume and page numbers in the case of a journal article.

    Comment


    • #3
      Hi Nick,
      Sorry about the citation.
      Here it goes: Pacifico, Daniele and Yoo, Hong Il, lclogit: A Stata Module for Estimating Latent Class Conditional Logit Models via the Expectation-Maximization Algorithm (November 11, 2012). UNSW Australian School of Business Research Paper No. 2012 ECON 49. Available at SSRN: http://ssrn.com/abstract=2174146
      Thanks,
      Anwesha

      Comment


      • #4
        Hello,

        I'm also experiencing the same difficulties. I've found that the lclogitml command will run if I do not specify membership variables, but once I include these in the model I get the same error you reported.

        How are you getting on with it now?

        Thanks,
        Bridget

        Comment


        • #5
          Hello, anyone has a solution to this problem?

          Comment


          • #6
            Hello,

            it appears that you are not using the up to date gllamm package

            ssc install gllamm, replace

            should fix it.

            Cheers,
            Chris

            Comment


            • #7
              Hello

              I have the same problem and updated the gllamm package. Does anyone know how to solve this?

              Thank you very much in advance

              Eva

              Comment


              • #8
                Thanks for your interest in lclogit. Yes, this problem may occur when your model involves a large number of parameters. I've recently released -lclogit2- that provides a solution to this problem, as well as other kinds of enhancements. You can download -lclogit2- by typing -ssc install lclogit2- at the command prompt. And here's a link to the background paper for -lclogit2-: http://dro.dur.ac.uk/29867/1/29867.pdf.

                Comment

                Working...
                X