pord_spread {agop} | R Documentation |
Compare Spread of Vectors (Preorder)
Description
This function determines whether one numeric vector has not greater spread than the other
Usage
pord_spread(x, y, incompatible_lengths = NA)
Arguments
x |
numeric vector |
y |
numeric vector of the same length as |
incompatible_lengths |
single logical value,
value to return iff lengths of |
Details
We say that x of size n
is of no greater spread than y
iff for all i,j=1,\dots,n
such
that x_i>x_j
it holds x_i-x_j\le y_i-y_jll
.
Such a preorder is used in the definition of
a spread measure (see Gagolewski, 2015).
Note that the class of dispersion functions includes
e.g. the sample variance (see var
),
standard veriation (see sd
),
range (see range
and then diff
),
interquartile range (see IQR
),
median absolute deviation (see mad
).
Value
The function returns a single logical value,
which states whether x
has no greater
spread than y
References
Gagolewski M., Spread measures and their relation to aggregation functions, European Journal of Operational Research 241(2), 2015, pp. 469–477.
Gagolewski M., Data Fusion: Theory, Methods, and Applications, Institute of Computer Science, Polish Academy of Sciences, 2015, 290 pp. isbn:978-83-63159-20-7
See Also
Other binary_relations:
check_comonotonicity()
,
pord_nd()
,
pord_weakdom()
,
rel_graph()
,
rel_is_antisymmetric()
,
rel_is_asymmetric()
,
rel_is_cyclic()
,
rel_is_irreflexive()
,
rel_is_reflexive()
,
rel_is_symmetric()
,
rel_is_total()
,
rel_is_transitive()
,
rel_reduction_hasse()