baytrends (version 1.1.0)

censoring: Describe Censoring

Description

Returns the type of censoring ("none," "left," "multiple") for an object.

Usage

censoring(x)

# S3 method for default censoring(x)

# S3 method for lcens censoring(x)

# S3 method for mcens censoring(x)

# S3 method for qw censoring(x)

Arguments

x

the object to get the type of censoring.

Value

A character string "none," "left," or "multiple" describing the type of censoring present in the object.

Details

Added from smwrQW.

Examples

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

# }

Run the code above in your browser using DataCamp Workspace