as.mcens | R Documentation |
Converts data to a multiply-censored data (mcens
)
object: various methods.
as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'mcens,missing,missing' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'lcens,missing,missing' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'numeric,missing,missing' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'numeric,numeric,missing' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'numeric,missing,numeric' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'numeric,missing,integer' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'numeric,missing,character' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'qw,missing,missing' as.mcens(lower.val, upper.val, censor.codes) ## S4 method for signature 'character,missing,missing' as.mcens(lower.val, upper.val, censor.codes)
lower.val |
The lower limit of the actual value, the special value of
|
upper.val |
The upper limit of the actual value, the special value of
|
censor.codes |
optional codes if |
In keeping with the logic of Surv
, NA
is permitted to indicate
left- or right-censored data. If both are NA
, then the observation is
treated as missing.
An S4 object of class "mcens." These objects are the basis for the analysis of censored data that are not strictly left censored.
Lorenz, D.L., in preparation
Surv
## Create one of each type of censoring, including uncensored # the last value is missing as.mcens(c(-Inf, 2, 2, 5, NA), c(1, 2, 3, Inf, NA)) # For combined remark and values: as.mcens(c("<1", "1", ">3", "1", "2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.