You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

bal.tab处理mimid对象时thresholds参数不生效的问题求助

问题:bal.tab对mimid对象的thresholds参数不生效(4.5.5版本)

我正在评估经mice插补、MatchThem加权后的连续治疗数据集的平衡性。使用版本4.5.5的bal.tab时,发现thresholds参数对mimid对象不生效(该功能自4.3版本添加),但在love.plot中该参数可正常显示阈值。(数据为私有无法提供)

代码示例

weights_mice_cont <- weightthem( formula =  as.formula(paste("dose ~ ", paste(names(covs_cont), collapse="+"), paste("+ moh_treat_prev_year"))), 
                  datasets = test_mice_cont,
                  approach = "within",
                  method = "glm",
                  density = "kernel")

summary(weights_mice_cont)
bal.tab(weights_mice_cont, thresholds = c(cor = 0.1))
love.plot(weights_mice_cont, binary = "std", thresholds = 0.05)

输出情况

  • bal.tab输出:未按照设定的cor = 0.1阈值标记不平衡协变量
  • love.plot输出:正常显示0.05的阈值线

恳请各位提供帮助。

内容的提问来源于stack exchange,提问作者Y.Silverman

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 11:48:13