r - 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) 初始计数?
谢谢
解决方案
对于 heemod 包运行的基于队列的马尔可夫模型来说,这是没有意义的。这些模型比较了可比较的患者组的策略,开始时在健康状态之间平均分布。所以这个功能不可用。
推荐阅读
- excel - 结合2个私有子工作表更改,宏vba
- javascript - 基于选择的jQuery显示/隐藏(调查模式)
- node.js - 如何对“process.platform”撒谎?
- rust - 如何将 Windows OsString 转换为 CString?
- typescript - 如何从 Typescript 映射中转换 JSON 对象?
- java - 如何使用 JUnit 对时间相关方法进行单元测试
- javascript - scrollTop x % of total
- angular - 如何修复'错误:无法匹配任何路由。URL 段:'anythongs''
- asp.net-mvc - 使用ajax调用的异步操作的mvc进度
- javascript - 自定义地图图标可以替换现有的吗?