Learn R Programming

vpc (version 1.2.4)

quantile_cens: Calculate quantiles respecting the censored data

Description

Calculate quantiles respecting the censored data

Usage

quantile_cens(
  x,
  probs = 0.5,
  limit = 1,
  cens = c("left", "right", "neither", "both")
)

Value

The quantile of x treating NA values as censored

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’). NA and NaN values are not allowed in numeric vectors unless na.rm is TRUE.

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