--- title: "Analysis of multistate hierarchical outcomes by the restricted mean time in favor of treatment" author: "Lu Mao" #date: "8/19/2019" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Analysis of multistate hierarchical outcomes by the restricted mean time in favor of treatment} %\VignetteEngine{knitr::rmarkdown} \usepackage[utf8]{inputenc} \usepackage{amsmath} --- ```{r, echo = FALSE, message = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` ## INTRODUCTION This vignette demonstrates the use of the R-package `rmt` for the restricted-mean-time-in-favor-of-treatment approach to the analysis of multiple prioritized outcomes. ### Data type To recap the methodology, we formulate patient experience with multiple events as a multistate process $Y(t)$ taking values in the ordered set $\{0,1,\ldots, K, K+1\}$, with a larger integer representing a more series condition. For example, $Y(t)=0$ if a cancer patient is in a state of remission, $Y(t)=1$ if the cancer has relapsed, $Y(t)=2$ if it has metastasized, and $Y(t)=3$ if the patient has died. The methodology in `rmt` is sufficiently general to be applicable to a wide range of settings, as long as the following assumptions are met: 1. The outcome process is **progressive** (can transition only from a less serious to a more serious state), i.e., $Y(t)\leq Y(s)$ for $t\leq s$; 1. Death is the only absorbing state, i.e., no competing risks to death (hence "cure models" are not allowed). ### Effect size estimand Let $Y^{(a)}$ denote the outcome process from group $a$ ($a=1$ for the treatment and $a=0$ for the control). The estimand of interest is constructed under a generalized pairwise comparison framework (Buyse, 2010). With $Y^{(1)}\perp Y^{(0)}$, let $$\mu(\tau)=E\int_0^\tau I\{Y^{(1)}(t)< Y^{(0)}(t)\}{\rm d}t - E\int_0^\tau I\{Y^{(1)}(t)> Y^{(0)}(t)\}{\rm d}t,$$ for some pre-specified follow-up time $\tau$. We call $\mu(\tau)$ the **restricted mean time (RMT) in favor of treatment** and interpret it as the *average time gained by the treatment in a more favorable condition*. It generalizes the familiar restricted mean survival time to account for the intermediate stages in disease progression. In fact, it can be shown that $\mu(\tau)$ reduces to the net restricted mean survival time (Royston & Parmar, 2011) under the two-state life-death model. For details of the methodology, refer to Mao (2021). The overall effect size can be decomposed into stage-wise components: $$\mu(\tau)=\sum_{k=1}^{K+1}\mu_k(\tau)$$ with \begin{equation}\label{eq:comp}\tag{*} \mu_k(\tau)=E\int_0^\tau I\{Y^{(1)}(t)