Comments (5)
That is something I have been wondering quite some time now. But the answer still leaves me a bit puzzled. Which is now the type of plot that I should use to examine the fit of my model?
If I use the DHARMa standard, I will miss out on plotting the RE completely. Why is that the standard, when the RE is an essential part of my model?
from dharma.
Thanks a lot Florian!
I consider my self a begginer, but I also can't get this conditional/unconditional on REs issue, and would appreciate more explicit info in the vignette, both about reasons for use and the use itself. DHARMa is the first time I have ever read about it.
Also, I found some models show exactly the same output plots (QQ and res vs. pred) conditional and unconditional on REs, while other models show very different ones (e.g. one good and one bad)? Why is that?
Best,
Diego.
from dharma.
Sorry, I realise I also forgot to answer to @AmeBol, so this is to both
a) @nabaesjodar: for a perfect model, both conditional / unconditional plots should look fine, so in doubt just check both.
b) I have chosen the unconditional as a default for DHARMa, because this checks the RE + the final distribution at the same time (so the entire model structure is re-simulated). If you simulate conditionally, you check the final residuals, conditional on the fitted REs, so you check e.g. only that the residual distribution is Poisson, conditional on the values of the fitted REs.
c) However, as noted in the help about dispersion tests, in particular dispersion tests are less powerful with unconditional simulations. So I would suggest to do dispersion tests based on conditional simulations (if you regression package permits this)
d) @AmeBol, you can of course additionally plot the RE distribution, as advised in many textbooks, and test for normality (take out REs, make a shapiro.test on them). I have no special functions for this in DHARMa because this is a test not on the residuals, but on the fitted values, so it's completely independent of the quantile residuals that are calculated in DHARMa. It may also be useful to look at REs against predictors or space, as they can absorb misfit (this is again one of the reasons, by the way, to use unconditional simulations as a default, because then you see this misfit in the DHARMa residuals).
from dharma.
I will add a few clarifications about this in the vignette.
from dharma.
Looking at this, this is all explained in the vignette already, so I'll close this!
from dharma.
Related Issues (20)
- How are scaled residuals calculated when grouping is used? HOT 2
- Is there a way to directly access or export the plot returned by plotResiduals()? HOT 3
- Interpreting DHARMa diagnostics for a binomial GLMM HOT 2
- Im getting significant deviations in KS tests for a glmm with guassian distribution HOT 1
- Detection of outliers before implementing binomial test for continuous response variable HOT 2
- Test spatial autocorrelation error: Dimensions of x / y coordinates don't match the dimension of the residuals HOT 4
- Dealing with non-uniform residuals in y-direction when plotted against predictor(s) HOT 2
- testDispersion() default fails to detect overdispersion in a Poisson GLMM HOT 4
- Question about using DHARMa for Bernoulli Response Data
- Add support for nls
- Diagnostic plots for model using glmmTMB and Beta distibution HOT 6
- could not find function "ensureDHARMa"
- plotResiduals() falls back to predict and doesn't create a warning if variable doesn't exist
- Implement option to use DHARMa plots on general residual definition (bypassing simulation)
- Power of the KS test HOT 1
- How to resolve the residual versus predicted quantile devation (Dharma plot)?
- Could not find documentation on red-shaded area around smooth spline HOT 2
- Pattern in RE-grouped residual for binomial GLMM HOT 2
- Adjust DHARMa plots for color blindness
- DHARMa: fittedModel not in class of supported models for a glmmTMB model HOT 3
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 dharma.