| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/relsurv.transMat.R |
| 3 |
\name{modify_transMat} |
| 4 |
\alias{modify_transMat} |
| 5 |
\title{Upgrade the transMat object for the multi-state/relsurv setting.} |
| 6 |
\usage{ |
| 7 |
modify_transMat(trans, split.transitions) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{trans}{The original transition matrix (usually generated using function |
| 11 |
transMat from mstate). Also often present in the msfit object.} |
| 12 |
|
| 13 |
\item{split.transitions}{The transitions that should be split.} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
An upgraded transition matrix that contains the population and |
| 17 |
excess transitions. |
| 18 |
} |
| 19 |
\description{ |
| 20 |
A function that upgrades the transMat object so that the population |
| 21 |
and excess-related transitions are included in the transition matrix. |
| 22 |
} |
| 23 |
\examples{ |
| 24 |
|
| 25 |
# transition matrix for illness-death model |
| 26 |
trans <- transMat(list(c(2,3),c(4), c(), c()), |
| 27 |
names = c("Alive", "Relapse","Non-relapse mortality", "Death after relapse")) |
| 28 |
split.transitions <- c(2,3) |
| 29 |
modify_transMat(trans, split.transitions) |
| 30 |
|
| 31 |
} |
| 32 |
\seealso{ |
| 33 |
\code{\link{transMat}} |
| 34 |
} |
| 35 |
\author{ |
| 36 |
Damjan Manevski \email{[email protected]} |
| 37 |
} |