Constructur for Event History objects
Event(time, time2 = TRUE, cause = NULL, cens.code = 0, ...)
Object of class Event (a matrix)
... content for details
t1 <- 1:10
t2 <- t1+runif(10)
ca <- rbinom(10,2,0.4)
(x <- Event(t1,t2,ca))
#> entry exit cause
#> [1,] 1 1.171086 0
#> [2,] 2 2.333062 0
#> [3,] 3 3.183510 1
#> [4,] 4 4.128726 1
#> [5,] 5 5.503349 1
#> [6,] 6 6.767420 1
#> [7,] 7 7.931043 1
#> [8,] 8 8.471621 1
#> [9,] 9 9.953553 1
#> [10,] 10 10.700965 0
#> attr(,"class")
#> [1] matrix
#> attr(,"cens.code")
#> [1] 0