0
$\begingroup$

Today , I get the terrible resulits from the glmer.nb(). I tried a plent of methods to change the variables. However, When I finaly fitted a model with FUll variable . qqPlot(resid(Model)) tell me I got the right things but DHARMa's result told me I'm wrong. Shall I believe DHARMa Pakacages? Of course , I should appreciate the author for his contribution to DHARMa which is plenty easier to validate model, but today's result makes me confused. These are the prodecures that I cope with my dataset: 1.rm(M) #first I want to remove the case in case of unneccesary troublesome.

2.M = glmer.nb(z ~ x + y + RC1 + RC2 + (1 | SITE) + (1 | PID) + (1 | YEAR) + (1 | DATE), data = dt, verbose=TRUE,glmerControl(optimizer = c('bobyqa'))) 3.simulateResiduals(M,n = 1000) %>% plot() and DHARMa tells me how terrible things are, like this!: enter image description here

4.but if I use qqPlot , it tells me like this, I think my model is ok, right? But DHARMa told me not. I don't know how to believe . Anybody could make a good interprete?

par(mfrow = c(1,2))
qqPlot(resid(M))
plot(resid(M) ~ fitted(M)); abline(h=0)

enter image description here

And pardon me I can't upload my dataset for your convinience because it will exceed the number of character. If you know how to deal with it , please tell me . Thank you very much.

$\endgroup$
2
  • $\begingroup$ You can share a link to your dataset ... $\endgroup$ Commented Mar 20, 2020 at 12:17
  • $\begingroup$ can you give me anwser about the validation abouve? $\endgroup$ Commented Mar 20, 2020 at 13:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.