Comments (2)
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.
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)
- resids_plot for beta family HOT 1
- how to use the predict function with Gaussian mixed model HOT 1
- Discussion: Model Selection with GLMMadaptive HOT 3
- Fitting Zero-inflated models for rare events in repeated measures data HOT 1
- Implement a refit function HOT 3
- emmeans functions in two-part models: only gives output for "main" model HOT 2
- Possibility to evaluate marginal log-likelihood HOT 2
- Error in chol.default(X[[i]], ...) HOT 1
- Random intercept only for zero-inflated portion, not count portion HOT 1
- Documentation contains dead links HOT 1
- May I know how to get the effect size of a two-part mixed effects model? HOT 4
- emmeans produces strange (wrong) estimates from beta regression after mixed_model HOT 1
- Adding "sandwich" argument to mixed_model HOT 1
- Error: No glance method for objects of class MixMod HOT 6
- Issue with data prep for backward formulation HOT 4
- A problem with the censored.normal() family? HOT 2
- emmeans support doesn't return the link HOT 4
- Predict function for hurdle.lognormal response
- hurdle.lognormal() needs to trigger error message when zi_fixed is omitted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glmmadaptive.