Comments (2)
Hi, yes, it seems the parametric overdispersion creates an error when used on glmer.nb. I have to say I didn't try this because I never intended this to be used with the neg binom.
Can I ask why you want to test overdispersion with neg binom? As the dispersion is adjusted, one wouldn't expect overdispersion here?
-> fix: just throw a warning?
-> I also noted some unexpected behavior with refit = T, will open a new ticket for this
Reproducible example
library(lme4)
testData = createData(sampleSize = 300, overdispersion = 5, randomEffectVariance = 0, family = poisson())
fittedModel <- glmer.nb(observedResponse ~ Environment1 + (1|group) , data = testData)
simulationOutput <- simulateResiduals(fittedModel = fittedModel)
plot(simulationOutput, rank = T)
# works
testOverdispersion(simulationOutput)
# works, but produces overdispersion! -> new ticket
simulationOutput2 <- simulateResiduals(fittedModel = fittedModel, refit = T)
testOverdispersion(simulationOutput2)
# doesn't work
testOverdispersionParametric(fittedModel)
from dharma.
the testOverdispersionParametric(fittedModel) was in the end just a string conversion problem, fixed with 9bb149d
see further notes on simulated testOverdispersion in #48
from dharma.
Related Issues (20)
- Understanding uniformity of DHARMa residuals HOT 2
- Use of the rotation argument in simulateResiduals() HOT 6
- Why uniformity in y direction if we plot against any predictor? HOT 5
- Update / resolve GH action standard test workflow HOT 2
- DHARMa's temporal autocorrelation plot differs from acf plot HOT 6
- testTemporalAutocorrelation within selection of locations HOT 2
- Questions about dispersion tests HOT 1
- Simulated LRT sometimes shows strange behaviour
- Does the direction of the deviations have any meanings HOT 2
- simulateResiduals fails on glmmTMB model with rank_check = "adjust" HOT 5
- Interpreting DHARMa output HOT 1
- Interpretation of DHARMa output - GLMER (binomial) HOT 2
- Overdispersion in a beta regression? HOT 2
- Error when using simulateResiduals() on a phyr object (class communityPGLMM) HOT 1
- Interpreting residual pattern for glmer HOT 2
- Support for tweedie in glm and cpglm
- Interpreting DHARMa residuals conditional vs unconditional HOT 2
- testZeroInflation returns ratioObsSim = Inf HOT 6
- Seeking Explanation for Residuals vs. Predicted Plot HOT 2
- Residual grouping according to RE groups that are used in the model
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.