quantile_cens: Calculate quantiles respecting the censored data

View source: R/quantile_cens.R

quantile_censR Documentation

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")
)

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

Value

The quantile of x treating NA values as censored


ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.