Learn R Programming

distr6 (version 1.5.6)

liesInSupport: Test if Data Lies in Distribution Support

Description

Tests if the given data lies in the support of the Distribution, either tests if all data lies in the support or any of it.

Usage

liesInSupport(object, x, all = TRUE, bound = FALSE)

Arguments

object

Distribution.

x

vector of numerics to test.

all

logical, see details.

bound

logical, if FALSE (default) uses dmin/dmax otherwise inf/sup.

Value

Either a vector of logicals if all is FALSE otherwise returns TRUE if every element lies in the distribution support or FALSE otherwise.