Skip to contents

Counts how many observations fall outside the min-to-max range of all simulations. Under a correct model, the expected number is approximately 2 * N / (nsim + 1). Equivalent to DHARMa::testOutliers().

Usage

test_outliers(object, ...)

# Default S3 method
test_outliers(object, observed = NULL, nsim = 250L, seed = 123L, ...)

Arguments

object

A fitted model with simulate() method

...

Passed to methods.

observed

Observed response vector (optional)

nsim

Number of simulations (default 250)

seed

Random seed (default 123)

Value

An htest object (binomial test)