Giter VIP home page Giter VIP logo

Comments (2)

drizopoulos avatar drizopoulos commented on July 18, 2024

Hi Florian,

a) The likelihood in a multilevel model is defined at the higher-level units. E.g., say we have pupils in schools, then the likelihood contribution is at the school level, not the pupil level. Hence, to my view, this works as documented. See also here: https://drizopoulos.github.io/GLMMadaptive/articles/GLMMadaptive.html#generalized-linear-mixed-models-theory

b) Yes, they are ignored. According to (a), the idea is in the estimation of the model to give different weights to different observations. But when we want to simulate from the model, I don't see why or how the weights should be used. The idea is to simulate new observations from the model using the correctly estimated parameters.

I close this for now as I believe it works as documented.

from glmmadaptive.

florianhartig avatar florianhartig commented on July 18, 2024

Hi Dimitris,

many thanks for the explanations.

About the warning: the reason is that a model fitted with weights will estimate parameters will not necessarily produce data that resembles the observed data (as we don't optimize any more the likelihood of the assumed data-generating process). As this may create problems for people that use the simulations for inferential calculations (e.g. DHARMa, but also if I would do a simulated LRT), I would prefer a warning.

In any case, I have implemented a warning in DHARMa already https://github.com/florianhartig/DHARMa/blob/90ceb371ee0f55748f606435111343e7ad9132f7/DHARMa/R/compatibility.R#L458

Cheers,
Florian

from glmmadaptive.

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.