Learn R Programming

timereg (version 2.0.1)

Event: Event history object

Description

Constructur for Event History objects

Usage

Event(time, time2 = TRUE, cause = NULL, cens.code = 0, ...)

Arguments

time

Time

time2

Time 2

cause

Cause

cens.code

Censoring code (default 0)

...

Additional arguments

Value

Object of class Event (a matrix)

Details

... content for details

Examples

Run this code
# NOT RUN {
	t1 <- 1:10
	t2 <- t1+runif(10)
	ca <- rbinom(10,2,0.4)
	(x <- Event(t1,t2,ca))

# }

Run the code above in your browser using DataLab