v_rcensored provides a right-censored vector. Unlike other representations, such the survival package's Surv object, v_rcensored can be subset with [ and concatenated with c as you would any other vector. The type is implemented as a new_rcrd where the necessary data are contained in fields.

v_rcensored(
outcomes = list(),
censors,
end_time = Inf,
internal_name = "",
context,
extra_descriptors = list()
)

rcen(
outcomes = list(),
censors,
end_time = Inf,
internal_name = "",
context,
extra_descriptors = list()
)

is_v_rcensored(x)

is_rcensored(x)

# S3 method for v_rcensored
as.character(x, ...)

# S3 method for v_rcensored
as_canonical(x)

## Arguments

outcomes A list of v_event_time vectors that define the outcomes. The order of this list defines the precedence of outcomes. That is, if the first outcome and second outcome occur at the same time, the first outcome is the reason for the outcome. A list of v_event_time vectors that define the censor The order of this list defines the precedence of censoring That is, if the first censor and second censor occur at the same time, the first censor is the reason for the censoring A numeric scalar defining the end of follow-up. the internal name of the variable a context A list of descriptors functions appended to the default descriptors. a integer vector passed to other methods such as as.character

## Details

as_canonical casts the vector to a list. See v_rcensored_accessors for functions to access components of a v_rcensored.

When printed, an open right triangle indicates an observation was censored. A closed right triangle indicates an observation reached end_time without being censored or having an outcome. No triangles indicated an observation that had one of the outcomes.

Other stype types: tbl_analysis, v_binary, v_character, v_continuous_nonneg, v_continuous, v_count, v_event_time, v_nominal, v_ordered