Code Monkey home page Code Monkey logo

Comments (5)

AmeBol avatar AmeBol commented on June 30, 2024

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.

nabaesjodar avatar nabaesjodar commented on June 30, 2024

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.

florianhartig avatar florianhartig commented on June 30, 2024

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.

florianhartig avatar florianhartig commented on June 30, 2024

I will add a few clarifications about this in the vignette.

from dharma.

florianhartig avatar florianhartig commented on June 30, 2024

Looking at this, this is all explained in the vignette already, so I'll close this!

from dharma.

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.