Learn R Programming

DHARMa (version 0.1.6)

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

a DHARMa object with simulated residuals created with 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