trans: Identify transition type in model terms

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
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

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

coxinterval documentation built on May 2, 2019, 9:36 a.m.