ms {rmt}R Documentation

Create a multistate event object

Description

Create a multistate event object

Usage

ms(id, time, status)

Arguments

id

A vector of id variable.

time

A vector of follow-up times.

status

A vector of event type, k if transitioning to state k, 0 if censored and K+1 represents death.

Value

An object of class ms used as an argument for rmtfit.


[Package rmt version 1.0 Index]