Description Usage Arguments Details Examples
Represent a possibly censored or truncated response variable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  R(object, ...)
## S3 method for class 'numeric'
R(object = NA, cleft = NA, cright = NA,
tleft = NA, tright = NA, tol = sqrt(.Machine$double.eps), ...)
## S3 method for class 'ordered'
R(object, cleft = NA, cright = NA, ...)
## S3 method for class 'integer'
R(object, cleft = NA, cright = NA, bounds = c(min(object), Inf), ...)
## S3 method for class 'factor'
R(object, ...)
## S3 method for class 'Surv'
R(object, ...)
as.Surv(object)
## S3 method for class 'response'
as.Surv(object)

object 
A vector of (conceptually) exact measurements or an object of class

cleft 
A vector of left borders of censored measurements 
cright 
A vector of right borders of censored measurements 
tleft 
A vector of left truncations 
tright 
A vector of right truncations 
tol 
Tolerance for checking if 
bounds 
Range of possible values for integers 
... 
other arguments, ignored except for 
R
is basically an extention of Surv
for the
representation of arbitrarily censored or truncated measurements at any scale.
R
applied to a list calls R
for each of the list elements
and returns a joint object.
1 2 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.