View source: R/censored.mean.R
censored.mean | R Documentation |
Returns the median if the majority of values are censored and the mean otherwise.
censored.mean(x, lower, trim=0)
x |
numeric vector. |
lower |
left censoring point. |
trim |
fraction of observations to be trimmed from each end of |
qrnn.fit
, qrnn.predict
x <- c(0, 0, 1, 2, 3)
print(censored.mean(x, lower=0))
x.cens <- c(0, 0, 0, 1, 2)
print(censored.mean(x.cens, lower=0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.