Event: Event history object

Description Usage Arguments Details Value Author(s) Examples

View source: R/event.r

Description

Constructur for Event History objects

Usage

1
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

Details

... content for details

Value

Object of class Event (a matrix)

Author(s)

Klaus K. Holst and Thomas Scheike

Examples

1
2
3
4
	t1 <- 1:10
	t2 <- t1+runif(10)
	ca <- rbinom(10,2,0.4)
	(x <- Event(t1,t2,ca))

timereg documentation built on Oct. 13, 2021, 5:06 p.m.

Related to Event in timereg...