Learn R Programming

distr6 (version 1.5.2)

liesInType: Test if Data Lies in Distribution Type

Description

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

Usage

liesInType(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 type or FALSE otherwise.