trans {coxinterval}R Documentation

Identify transition type in model terms

Description

A special function for coxdual that identifies formula terms specifying the state-transition type.

Usage

trans(from, to)

Arguments

from

a variable representing the originating state.

to

a variable representing the subsequent state.

Value

A combination of the from and to arguments by column with two attributes:

"states"

a vector giving the unique non-missing values in the from and to arguments ordered so that the initial state appears first, the intermediate state second, and the terminal state last.

"types"

a vector of transition type labels in terms of the values in the from and to arguments ordered so that the intermediate transition appears first, the terminal transition directly from the initial state second, and the terminal transition from the intermediate state last.

See Also

coxdual

Examples

with(dualrc[1:10, ], trans(from, to))

[Package coxinterval version 1.2 Index]