Learn R Programming

emil (version 1.1-6)

factor.events: Get events on factor form

Description

By default all events are returned regardless of when they occurred. By setting time only the events that has occurred up until then will be returned, and cases with shorter follow-up times and no event will be marked as censored.

Usage

factor.events(x, time, censor.label = "no event", keep)

Arguments

x
Outcome vector.
time
Time point to evaluate at.
censor.label
What to label the absence of an event with.
keep
Event types to keep, defaults to all.

Value

  • A factor of events.