powered by
Returns the type of censoring ("none," "left," "multiple") for an object.
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)
# S3 method for default censoring(x)
# S3 method for lcens censoring(x)
# S3 method for mcens censoring(x)
# S3 method for qw censoring(x)
the object to get the type of censoring.
A character string "none," "left," or "multiple" describing the type of censoring present in the object.
Added from smwrQW.
# NOT RUN { censoring(2.3) # a simple number censoring(as.lcens(1, 2)) # left-censored # }
Run the code above in your browser using DataLab