msdata to etm format

msdata2etm(msdata, id, covs)

Arguments

msdata

Multi-state data in msdata format, as used in mstate

id

Column name identifying the subject id

covs

Vector of column names containing covariates to be included