Learn R Programming

distr6 (version 1.3.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.

R6 Usage

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

Details

If all is TRUE (default) returns TRUE only if every element in x lies in the support. If all is FALSE then returns a vector of logicals for each corresponding element in the vector x.

See Also

liesInType