quantiles_equivalent: Checks if two quantiles have the same sample value for a...

View source: R/quantiles_equivalent.R

quantiles_equivalentR Documentation

Checks if two quantiles have the same sample value for a given vector. This indicates that the vector has little variation.

Description

Checks if two quantiles have the same sample value for a given vector. This indicates that the vector has little variation.

Usage

quantiles_equivalent(x, quantile_probs = c(0.1, 0.9))

Arguments

x

Data vector. If a factor it is converted to numeric using unclass().

quantile_probs

Vector with two probabilities that specify the quantiles.

Value

True if the two quantiles are equal, indicating a lack of variation in the sample data.

See Also

restrict_by_quantiles


ck37/varimpact documentation built on June 23, 2022, 4:41 a.m.