首页 > 解决方案 > heemod::如何在运行模型时为两种策略定义不同的初始计数

问题描述

是否可以在库 heemod 中为两种策略运行不同的初始计数?

假设我们有 ?run_model 提供的示例

mod1 <- define_strategy( transition = define_transition( .5, .5, .1, .9 ), define_state( cost = 543, ly = 1 ), define_state( cost = 432, ly = 1 ) )

mod2 <- define_strategy( transition = define_transition( .5, .5, .1, .9 ), define_state( cost = 789, ly = 1 ), define_state( cost = 456, ly = 1 ) )

我们怎样才能改变这个功能

res2 <- run_model( mod1, mod2, cycles = 10, cost = cost, effect = ly)

并设置 mod1 c(80,20) 和 mod2 c(60,40) 初始计数?

谢谢

标签: rrstudiomarkov

解决方案


对于 heemod 包运行的基于队列的马尔可夫模型来说,这是没有意义的。这些模型比较了可比较的患者组的策略,开始时在健康状态之间平均分布。所以这个功能不可用。


推荐阅读