DHARMa (version 0.1.3)

testZeroInflation: Tests for zero-inflation

Description

This function compares the observed number of zeros with the zeros expected from simulations.

Usage

testZeroInflation(simulationOutput, plot = T, alternative = "more")

Arguments

simulationOutput
an object with simulated residuals created by simulateResiduals
plot
whether to plot output
alternative
whether to test for 'more', 'less', or 'both' more or less zeros in the observed data

Details

shows the expected distribution of zeros against the observed

See Also

testUniformity, testSimulatedResiduals, testTemporalAutocorrelation, testSpatialAutocorrelation, testOverdispersion, testOverdispersionParametric