# 多状态模型

多状态模型是一种针对连续时间随机过程的统计模型，其中个体在有限个状态之间转移，用于生存分析和医学统计，以分析包含一种以上事件类型或每人发生一次以上事件的事件历史。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup> 普通生存模型追踪单一事件时间，而多状态模型则估计诸如在给定时间处于某一状态的概率、在某一状态中平均停留的时间（逗留时间）以及访问某一状态的期望次数等量。<sup>[2](https://link.springer.com/article/10.1007/s40471-022-00291-y)</sup> 竞争风险模型——个体从“存活”状态转移到若干死因之一——是一种特殊情况，多状态模型通过同时描述经中间事件（如复发或疾病进展）的转移对其加以推广。<sup>[3](https://doi.org/10.1002/sim.2712)</sup>

| 关键事实 | 详情 |
|---|---|
| 状态与转移 | 多状态模型是有限状态空间上的连续时间随机过程；状态分为瞬态或吸收态，状态的改变即为转移。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup> |
| 可估计量 | 给定时间处于某状态的概率、在某状态的平均逗留时间，以及访问某状态的期望次数。<sup>[2](https://link.springer.com/article/10.1007/s40471-022-00291-y)</sup> |
| 非参数估计量 | 状态占据概率的奥伦-约翰森（Aalen–Johansen）估计量是卡普兰-迈耶（Kaplan–Meier）估计量的多状态类比；卡普兰-迈耶估计量和累积发病率估计量都是它的特例。<sup>[2](https://link.springer.com/article/10.1007/s40471-022-00291-y)</sup> |
| 马尔可夫结构 | 在马尔可夫模型中，转移强度仅通过当前状态依赖于过程历史；半马尔可夫（“时钟重置”）模型还依赖于进入当前状态的时间。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup> |
| 稳健性 | 即使潜在过程不是马尔可夫的，只要删失是独立的，奥伦-约翰森和纳尔逊-阿伦（Nelson–Aalen）估计量对状态占据概率和积分转移风险仍保持相合。<sup>[4](https://doi.org/10.1016/s0167-7152%2801%2900155-9)</sup> |
| 样本量经验法则 | 每个转移至少约20个记录完整的事件，因为所需研究规模随模型复杂度增加。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC11015071/)</sup> |
| 软件 | R包mstate、<sup>[6](https://doi.org/10.18637/jss.v038.i07)</sup> msm、<sup>[7](https://doi.org/10.18637/jss.v038.i08)</sup> etm、<sup>[8](https://doi.org/10.18637/jss.v038.i04)</sup> flexsurv<sup>[9](https://doi.org/10.18637/jss.v070.i08)</sup>和SemiMarkov<sup>[10](https://doi.org/10.18637/jss.v066.i06)</sup>分别涵盖基于Cox的、面板数据的、经验转移矩阵的、参数化的和半马尔可夫的拟合。 |

## 工作原理

该模型表示为有向图，其节点是状态，箭头是可能的转移。从状态\( r \)到状态\( s \)的每个转移带有转移强度\( q_{rs}(t) \)，即单位时间内从\( r \)转移到\( s \)的瞬时速率。在马尔可夫模型中，这些强度仅通过当前状态依赖于过程历史；在半马尔可夫模型中，它们采取\( \alpha_{hj}(t,\, t - t_h) \)的形式，还依赖于进入当前状态\( h \)的时间\( t_h \)。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup>

马尔可夫假定是将强度与应用关注的量联系起来的纽带。通过柯尔莫哥洛夫向前方程，转移概率可通过乘积-极限关系与强度相联系，这正是奥伦-约翰森估计量的基础。<sup>[11](https://scholarlypublications.universiteitleiden.nl/access/item%3A3597632/view)</sup> 在时间齐次模型中，转移概率矩阵计算为缩放强度矩阵的矩阵指数，而在状态\( r \)中的单次逗留时间服从均值为\( -1/q_{rr} \)的指数分布。<sup>[12](https://cran.r-project.org/web/packages/msm/vignettes/msm-manual.pdf)</sup> 马尔可夫假定通过转移概率矩阵支持间歇观测（面板）数据的似然计算；对于指定的非马尔可夫模型也可构造似然，尽管计算更为复杂。<sup>[12](https://cran.r-project.org/web/packages/msm/vignettes/msm-manual.pdf)</sup>

时间尺度的选择很重要。时钟向前模型测量自进入初始状态以来的时间；时钟重置模型在每次转移时将时间重置为零。由于时间尺度本身随后取决于当前状态是何时到达的，时钟重置模型按定义违反马尔可夫假定，只有时钟向前模型能满足它。<sup>[13](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0123489)</sup> 在半马尔可夫模型中柯尔莫哥洛夫方程不适用，因此预测通过模拟而非矩阵乘积进行。<sup>[14](https://cran.r-project.org/web/packages/flexsurv/vignettes/multistate.pdf)</sup>

## 操作方法

非参数估计通过计算累积转移风险的纳尔逊-阿伦估计量并将其代入乘积-极限关系来进行；由此得到的转移概率的代入估计量即为奥伦-约翰森估计量。<sup>[15](https://bendixcarstensen.com/AdvCoh/papers/Andersen.2002b.pdf)</sup> 回归通常建立在转移特异性Cox模型之上：在竞争风险设定中，对原因\( k \)拟合Cox型模型，转移到其他状态的个体在其转移时被删失。<sup>[3](https://doi.org/10.1002/sim.2712)</sup> 另一种方法通过亚分布风险直接对累积发病率函数回归，使用修改后的风险集，其中因其他原因失败的受试者仍处于观察之下。<sup>[3](https://doi.org/10.1002/sim.2712)</sup> 一个关键的可识别性事实约束了解释：竞争事件时间的联合生存函数无法从观测数据中识别，因为每个受试者只贡献一个失败时间。<sup>[3](https://doi.org/10.1002/sim.2712)</sup> 此外，失败概率与负累积风险的指数之间的简单单事件关系\( 1 - \exp(-\text{累积风险}) \)在竞争风险下不再成立，因此在该尺度上呈现原因特异性风险具有误导性。<sup>[15](https://bendixcarstensen.com/AdvCoh/papers/Andersen.2002b.pdf)</sup>

在实践中，mstate包涵盖从数据准备、估计到作图的全部步骤，适用于非参数和基于Cox的模型，竞争风险作为特殊情况。<sup>[6](https://doi.org/10.18637/jss.v038.i07)</sup> msm包对精确转移时间未被观测的面板数据拟合连续时间马尔可夫模型和隐马尔可夫模型。<sup>[7](https://doi.org/10.18637/jss.v038.i08)</sup> 参数化替代方案包括flexsurv——R中参数化生存建模的平台，<sup>[9](https://doi.org/10.18637/jss.v070.i08)</sup> 用于半马尔可夫模型参数估计的SemiMarkov包，<sup>[10](https://doi.org/10.18637/jss.v066.i06)</sup> 以及允许转移特异性分布的参数化多状态生存模型。<sup>[16](https://doi.org/10.1002/sim.7448)</sup>

## 起源

多状态模型的基本理论在1993年由珀尔·克拉格·安德森（Per Kragh Andersen）及其同事所著的《基于计数过程的统计模型》（*Statistical Models Based on Counting Processes*）专著中，使用计数过程方法加以整合。<sup>[17](https://doi.org/10.1007/978-1-4612-4348-9)</sup> 索姆纳特·达塔（Somnath Datta）和格伦·A·萨滕（Glen A. Satten）于2001年在《统计与概率快报》（*Statistics & Probability Letters*）上证明，奥伦-约翰森和纳尔逊-阿伦估计量对非马尔可夫过程仍然有效，他们指出这一事实此前在文献中未被注意到，文献中仅声称其对马尔可夫模型有效。<sup>[4](https://doi.org/10.1016/s0167-7152%2801%2900155-9)</sup> 应用方面的使用由H. 普特（H. Putter）、M. 菲奥科（M. Fiocco）和R. B. 赫斯库斯（R. B. Geskus）2006年在《医学统计学》（*Statistics in Medicine*）上关于竞争风险和多状态模型的教程加以整合，<sup>[3](https://doi.org/10.1002/sim.2712)</sup> 安德森和凯丁（Andersen and Keiding，2011）分析了多状态模型的哪些泛函具有有意义的可解释性，并警告说转移风险的某些数学上正确的函数可能不具有有意义的可解释性。<sup>[18](https://doi.org/10.1002/sim.4385)</sup> 玛丽·伦恩（Mary Lunn）和唐·麦克尼尔（Don McNeil）1995年在《生物统计学》（*Biometrics*）上的工作将Cox回归扩展到竞争风险设定。<sup>[19](https://doi.org/10.2307/2532940)</sup>

## 变体

命名的结构包括竞争风险模型，具有一个瞬态“存活”和\( k \)个对应各死因的吸收态；<sup>[15](https://bendixcarstensen.com/AdvCoh/papers/Andersen.2002b.pdf)</sup> 疾病-死亡（残疾）模型，用于研究疾病发病率和死亡，有进展型形式和带康复的形式；<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup> 以及允许反向转移的可逆模型。隐马尔可夫变体处理带有误分类的观测状态，其发射概率由误分类矩阵控制。<sup>[12](https://cran.r-project.org/web/packages/msm/vignettes/msm-manual.pdf)</sup> flexsurv包同时支持原因特异性风险模型和混合模型，自2.0版起允许不同转移使用不同的参数族。<sup>[14](https://cran.r-project.org/web/packages/flexsurv/vignettes/multistate.pdf)</sup>

## 应用

在CALGB 10603急性髓系白血病试验中，多状态分析提示米哚妥林的总体生存获益源于更高的完全缓解率，加上较低的复发风险和完全缓解后死亡风险；当前状态概率用奥伦-约翰森估计量估计，状态内限制平均时间取为这些曲线下的面积。<sup>[20](https://journals.sagepub.com/doi/10.1177/1740774518789098)</sup> 一项非酒精性脂肪性肝病的多状态分析发现，无代谢合并症的受试者死亡相对风险为2.16（95% CI 1.41–3.31），有三种合并症时降至1.08（95% CI 0.89–1.30），这是传统Cox模型会遗漏的效应修饰。<sup>[2](https://link.springer.com/article/10.1007/s40471-022-00291-y)</sup> 一个无康复的疾病-死亡模型被应用于434名卵巢癌患者，以进展为中间状态、死亡为吸收态。<sup>[13](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0123489)</sup>

## 局限与替代方案

样本量是首要的实际约束：按Cox比例风险分析的设计和效能要求确定样本量的研究通常规模太小，无法支持具有利益相关者所关注的探索能力的多状态模型，经验法则是每个转移至少20个事件。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC11015071/)</sup> 忽略区间删失——如影像评估的癌症进展——已被证明会使样本量估计比达到所述效能所需低至多7.2%。<sup>[21](https://onlinelibrary.wiley.com/doi/10.1002/sim.8882)</sup> 尽管如此，多状态模型可以获得效能：在一项预防试验模拟中，对每2或3天进行的评估拟合的多状态模型表现至少与基于每日数据的Cox模型相当，并且当基线转移强度较低时，相对于二元逻辑回归和Cox回归显著增加了效能。<sup>[21](https://onlinelibrary.wiley.com/doi/10.1002/sim.8882)</sup>

应当检验马尔可夫假定。可用的检验包括带进入时间协变量的Cox模型、分层科芒热-安德森（Commenges–Andersen）脆弱性检验，以及对数秩型检验；在脆弱性疾病-死亡模型的模拟中，分层科芒热-安德森检验在名义第一类错误率为5%时效能超过99%，而对于半马尔可夫替代方案，以进入当前状态的时间为协变量的Cox检验效能显著更好。<sup>[11](https://scholarlypublications.universiteitleiden.nl/access/item%3A3597632/view)</sup> 这些检验还指导在标准奥伦-约翰森估计量和地标版本之间的选择：当马尔可夫假定成立时地标估计量效率较低，这是一种熟悉的偏差-方差权衡，在小样本中有利于标准估计量，在大样本中有利于地标估计量。<sup>[11](https://scholarlypublications.universiteitleiden.nl/access/item%3A3597632/view)</sup> 当马尔可夫条件不成立时，奥伦-约翰森估计量对转移概率可能不适用，尽管它对状态占据概率仍保持相合；<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)</sup> 针对进展型疾病-死亡模型的专门估计量在没有马尔可夫条件、也没有对删失分布的辅助假定的情况下仍保持相合。<sup>[22](https://onlinelibrary.wiley.com/doi/10.1111/biom.12288)</sup> 对于非马尔可夫数据，可以比较用于估计转移概率的地标法和代入法，基于伪观测的回归是进一步的选择。<sup>[23](https://link.springer.com/article/10.1007/s10985-022-09560-w)</sup>

## References

1. [Multi-state models for the analysis of time-to-event data (Meira-Machado et al., Statistical Methods in Medical Research, 2009)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2692556/)
2. [The Utility of Multistate Models: A Flexible Framework for Time-to-Event Data (Current Epidemiology Reports, 2022)](https://link.springer.com/article/10.1007/s40471-022-00291-y)
3. [H. Putter, M. Fiocco, R. B. Geskus (2006). Tutorial in biostatistics: competing risks and multi‐state models. Statistics in Medicine.](https://doi.org/10.1002/sim.2712)
4. [Validity of the Aalen–Johansen estimators of stage occupation probabilities and Nelson–Aalen estimators of integrated transition hazards for non-Markov models (Statistics & Probability Letters, 2001)](https://doi.org/10.1016/s0167-7152%2801%2900155-9)
5. [Application of multistate modeling to clinical data analysis (tutorial, CPT: Pharmacometrics & Systems Pharmacology, 2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11015071/)
6. [Liesbeth C. de Wreede, Marta Fiocco, Hein Putter (2011). mstate : An R Package for the Analysis of Competing Risks and Multi-State Models. Journal of Statistical Software.](https://doi.org/10.18637/jss.v038.i07)
7. [Christopher H. Jackson (2011). Multi-State Models for Panel Data: The msm Package for R. Journal of Statistical Software.](https://doi.org/10.18637/jss.v038.i08)
8. [Arthur Allignol, Martin Schumacher, Jan Beyersmann (2011). Empirical Transition Matrix of Multi-State Models: TheetmPackage. Journal of Statistical Software.](https://doi.org/10.18637/jss.v038.i04)
9. [Christopher Jackson (2016). flexsurv : A Platform for Parametric Survival Modeling in R. Journal of Statistical Software.](https://doi.org/10.18637/jss.v070.i08)
10. [Agnieszka Król, Philippe Saint-Pierre (2015). SemiMarkov: AnRPackage for Parametric Estimation in Multi-State Semi-Markov Models. Journal of Statistical Software.](https://doi.org/10.18637/jss.v066.i06)
11. [General tests of the Markov property in multi-state models (Titman & Putter, Biostatistics; institutional repository copy)](https://scholarlypublications.universiteitleiden.nl/access/item%3A3597632/view)
12. [Multi-state modelling with R: the msm package (Jackson)](https://cran.r-project.org/web/packages/msm/vignettes/msm-manual.pdf)
13. [A Systematic Model Specification Procedure for an Illness-Death Model without Recovery (PLOS One, 2015)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0123489)
14. [Flexible parametric multi-state modelling with flexsurv (vignette)](https://cran.r-project.org/web/packages/flexsurv/vignettes/multistate.pdf)
15. [Competing risks as a multi-state model (Andersen, Statistical Methods in Medical Research, 2002; author-affiliated copy)](https://bendixcarstensen.com/AdvCoh/papers/Andersen.2002b.pdf)
16. [Michael J. Crowther, Paul C. Lambert (2017). Parametric multistate survival models: Flexible modelling allowing transition‐specific distributions with application to estimating clinically useful measures of effect differences. Statistics in Medicine.](https://doi.org/10.1002/sim.7448)
17. [Per Kragh Andersen and colleagues (1993). Statistical Models Based on Counting Processes. Springer series in statistics.](https://doi.org/10.1007/978-1-4612-4348-9)
18. [Per Kragh Andersen, Niels Keiding (2011). Interpretability and importance of functionals in competing risks and multistate models. Statistics in Medicine.](https://doi.org/10.1002/sim.4385)
19. [Mary Lunn, Don McNeil (1995). Applying Cox Regression to Competing Risks. Biometrics.](https://doi.org/10.2307/2532940)
20. [Application of multi-state models in cancer clinical trials (2018)](https://journals.sagepub.com/doi/10.1177/1740774518789098)
21. [Power and sample size for multistate model analysis of longitudinal discrete outcomes in disease prevention trials (Smith, Nixon, Sharples, Statistics in Medicine, 2021)](https://onlinelibrary.wiley.com/doi/10.1002/sim.8882)
22. [Nonparametric estimation of transition probabilities in the non-Markov illness-death model: A comparative study (Biometrics, 2015)](https://onlinelibrary.wiley.com/doi/10.1111/biom.12288)
23. [Inference for transition probabilities in non-Markov multi-state models (Andersen, Wandall, Pohar Perme, Lifetime Data Analysis, 2022)](https://link.springer.com/article/10.1007/s10985-022-09560-w)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Stochastic processes

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/multistate-model

English original: https://www.edgepedia.org/multistate-model
