powered by
Returns the median if the majority of values are censored and the mean otherwise.
censored.mean(x, lower, trim=0)
numeric vector.
left censoring point.
fraction of observations to be trimmed from each end of x before the mean is computed.
x
qrnn.fit, qrnn.predict
qrnn.fit
qrnn.predict
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab