median.lcens | R Documentation |
Computes the sample median: methods for "lcens," "mcens," and "qw" data.
## S3 method for class 'lcens' median(x, na.rm = FALSE, ...) ## S3 method for class 'mcens' median(x, na.rm = FALSE, ...) ## S3 method for class 'qw' median(x, na.rm = FALSE, ...)
x |
the censored data object. |
na.rm |
remove missing values before computation? |
... |
potentially further arguments for methods; not used in the default or lcens method. |
A vector of length one representing the sample median.
The median is computed using the flipped Kaplan-Meier method described in Helsel (2012).
Helsel, D.R. 2012, Statistics for censored environmental data
using Minitab and R: New York, Wiley, 324 p.
censQuantile
median(as.lcens(1:4, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.