Giter Site home page Giter Site logo

Comments (3)

melff avatar melff commented on September 21, 2024

The iteration history suggests that your data have a flat (approximate) log-likelihood surface. This can be so because either you have too few clusters or to small clusters (I spuspect the latter).

Maybe you try setting maxit=83. You may get a warning about non-convergence, but at least "preliminary" estimates.

from mclogit.

mjohnston118 avatar mjohnston118 commented on September 21, 2024

Hi Martin,

Thanks for the response. I have a few questions:

  • Sorry but what does a "flat (approximate) log-likelihood surface" mean exactly?

  • Maxit = 83 works as you say with the following error: "Algorithm did not convergeFitted probabilities numerically 0 occurred". I then use BIC(study1_fullModel) to obtain the BIC value. Can this value be trusted?

  • Where did "83" come from? When I remove the three way interaction to get the BIC value of the reduced model I encounter the convergence problem again so it would be useful if I could solve this solution myself in the future

I'm quite new to this type of analysis so apologies if these questions are basic.

Regards,
Matthew

from mclogit.

melff avatar melff commented on September 21, 2024

A log-likelihood function is flat if it does not have a maximum. This may occur e.g. when there is separation in logitistic regression. As a consequence, no maximum likelihood estimate exists. I write "(approximate)" because the (log-)likelihood function of logit models with random effects does not have a closed form.

"Algorithm did not converge Fitted probabilities numerically 0 occurred" is a warning and not an error. Nevertheless I would not trust BICs here, because the log-likehood function is only a rough approximation.

I suggested to set 'maxit=83' because this is the last iteration before the algorithm diverges. You may at least have finite (yet not very trustworthy) estimates then.

It seems that indeed you do not have enough data to be able to estimate the random effects variance reliably. A quick fix would be to try fitting a multinomial model without random effects but with overdisperision. There may also a very slight chance that trying mblogit(...,estimator="REML") may help.

from mclogit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.