DHARMa (version 0.1.3)

testOverdispersion: Test for over/underdispersion

Description

This function performs a simulation-based test for over/underdispersion

Usage

testOverdispersion(simulationOutput, alternative = "overdispersion", plot = F)

Arguments

simulationOutput
an object with simulated residuals created by simulateResiduals
alternative
whether to test for "overdispersion", "underdispersion", or "both"
plot
whether to plot output

Details

This test compares the approximate deviance (via squared pearson residuals) with the same quantity from a number of simulated models. It is MUCH slower than the parametric alternative testOverdispersionParametric, but potentially more exact in situations where one would expect problems with the chi2 test employed in the parametric test

See Also

testSimulatedResiduals, testSimulatedResiduals, testZeroInflation, testTemporalAutocorrelation, testSpatialAutocorrelation, testOverdispersionParametric