baytrends (version 1.1.0)

censorLevels: Describe Censoring

Description

Returns all censoring levels for an object. From smwrQW package.

Usage

censorLevels(x, type = "left")

# S3 method for default censorLevels(x, type = "left")

# S3 method for lcens censorLevels(x, type = "left")

# S3 method for mcens censorLevels(x, type = "left")

# S3 method for qw censorLevels(x, type = "left")

Arguments

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

Value

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

See Also

censoring

Examples

Run this code
# NOT RUN {
censorLevels(2.3) # a simple number
censorLevels(as.lcens(1, 2)) # left-censored 

# }

Run the code above in your browser using DataLab