Extract a column from an event history object, as obtained with the function
getEvent(object, mode = "factor", column = "event")
Object of class
Return mode. One of
Name of the column to extract from the object.
Since objects of class
"Hist" are also matrices, all columns are
numeric or integer valued. To extract a correctly labeled version, the
states of the object is used to generate factor levels.
Thomas Alexander Gerds <email@example.com>
dat= data.frame(time=1:5,event=letters[1:5]) x=with(dat,Hist(time,event)) ## inside integer unclass(x) ## extract event (the extra level "unknown" is for censored data) getEvent(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.