censorLevels | R Documentation |
Returns all censoring levels for an object.
censorLevels(x, type = "left") ## Default S3 method: censorLevels(x, type = "left") ## S3 method for class 'lcens' censorLevels(x, type = "left") ## S3 method for class 'mcens' censorLevels(x, type = "left") ## S3 method for class 'qw' censorLevels(x, type = "left")
x |
the object to get the levels of censoring. |
type |
a character string indicating the type of censoring levels, must be either "left" or "right." |
A numeric vector of the sorted censoring levels. If all data are
uncensored, then -Inf is returned for type
= "left" and Inf is
returned for type
= "right."
Interval censoring is not characterized by a single value, so it is not
an option for type
.
censoring
censorLevels(2.3) # a simple number censorLevels(as.lcens(1, 2)) # left-censored
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.