censorLevels: Describe Censoring

Description Usage Arguments Value Note See Also Examples

View source: R/smwrQW_x_censorlevels.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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")

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

Note

Interval censoring is not characterized by a single value, so it is not an option for type.

See Also

censoring

Examples

1
2
censorLevels(2.3) # a simple number
censorLevels(as.lcens(1, 2)) # left-censored 

leppott/baytrends033 documentation built on July 28, 2018, 10:30 p.m.