Calculate quantiles respecting the censored data
Usage
quantile_cens(
x,
probs = 0.5,
limit = 1,
cens = c("left", "right", "neither", "both")
)Arguments
- x
numeric vector whose sample quantiles are wanted, or an object of a class for which a method has been defined (see also ‘details’).
NAandNaNvalues are not allowed in numeric vectors unlessna.rmisTRUE.- probs
numeric vector of probabilities with values in \([0,1]\). (Values up to 2e-14 outside that range are accepted and moved to the nearby endpoint.)
- limit
censoring limit (ignored if
cens="neither")- cens
censoring direction