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.916763 1
#> [2,] 2 2.387990 1
#> [3,] 3 3.661774 2
#> [4,] 4 4.272310 1
#> [5,] 5 5.539798 2
#> [6,] 6 6.475493 1
#> [7,] 7 7.171086 0
#> [8,] 8 8.333062 0
#> [9,] 9 9.183510 1
#> [10,] 10 10.128726 1
#> attr(,"class")
#> [1] matrix
#> attr(,"cens.code")
#> [1] 0